Compartilhar via


Unbox.AsInt16(Object) Method

Definition

Unboxes the specified object into an Int16 object.

public:
 static short AsInt16(System::Object ^ var);
public:
 static short AsInt16(Platform::Object ^ var);
 static short AsInt16(winrt::Windows::Foundation::IInspectable const & var);
public static short AsInt16 (object var);
static member AsInt16 : obj -> int16
Public Shared Function AsInt16 (var As Object) As Short

Parameters

var
Object

The original value to unbox.

Returns

Returns an Int16 object.

Applies to