Partilhar via


Unbox.AsInt32(Object) Method

Definition

Unboxes the specified object into an Int32 object.

public:
 static int AsInt32(System::Object ^ var);
public:
 static int AsInt32(Platform::Object ^ var);
 static int AsInt32(winrt::Windows::Foundation::IInspectable const & var);
public static int AsInt32 (object var);
static member AsInt32 : obj -> int
Public Shared Function AsInt32 (var As Object) As Integer

Parameters

var
Object

The original value to unbox.

Returns

Returns an Int32 object.

Applies to