Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Converts a string to a Ushort value.
This API is not CLS-compliant. The CLS-compliant alternative is ToShort.
Namespace: Microsoft.VisualBasic.CompilerServices
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Public Shared Function ToUShort ( _
Value As String _
) As UShort
[CLSCompliantAttribute(false)]
public static ushort ToUShort(
string Value
)
[CLSCompliantAttribute(false)]
public:
static unsigned short ToUShort(
String^ Value
)
[<CLSCompliantAttribute(false)>]
static member ToUShort :
Value:string -> uint16
public static function ToUShort(
Value : String
) : ushort
Parameters
- Value
Type: System. . :: . .String
The string to convert.
Return Value
Type: System. . :: . .UInt16
The Ushort value of the string.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.