Partager via


Unbox.AsUInt16 Method

Unboxes the specified object into a UInt16 object.

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Shared Function AsUInt16 ( _
    var As Object _
) As UShort
public static ushort AsUInt16(
    Object var
)
public:
static unsigned short AsUInt16(
    Object^ var
)
static member AsUInt16 : 
        var:Object -> uint16
public static function AsUInt16(
    var : Object
) : ushort

Parameters

  • var
    Type: Object

    The original value to unbox.

Return Value

Type: UInt16
Returns a UInt16 object.

.NET Framework Security

See Also

Reference

Unbox Class

Microsoft.VisualStudio.PlatformUI Namespace