Unbox.AsInt16 Method

Unboxes the specified object into an Int16 object.

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

Syntax

'Declaration
Public Shared Function AsInt16 ( _
    var As Object _
) As Short
public static short AsInt16(
    Object var
)
public:
static short AsInt16(
    Object^ var
)
static member AsInt16 : 
        var:Object -> int16
public static function AsInt16(
    var : Object
) : short

Parameters

  • var
    Type: Object

    The original value to unbox.

Return Value

Type: Int16
Returns an Int16 object.

.NET Framework Security

See Also

Reference

Unbox Class

Microsoft.VisualStudio.PlatformUI Namespace