Share via


ToUShort Method (Object)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Converts an object 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 Object _
) As UShort
[CLSCompliantAttribute(false)]
public static ushort ToUShort(
    Object Value
)
[CLSCompliantAttribute(false)]
public:
static unsigned short ToUShort(
    Object^ Value
)
[<CLSCompliantAttribute(false)>]
static member ToUShort : 
        Value:Object -> uint16 
public static function ToUShort(
    Value : Object
) : ushort

Parameters

Return Value

Type: System. . :: . .UInt16
The Ushort value of the object.

.NET Framework Security

See Also

Reference

Conversions Class

ToUShort Overload

Microsoft.VisualBasic.CompilerServices Namespace