次の方法で共有


Unbox.AsUInt16(Object) Method

Definition

Unboxes the specified object into a UInt16 object.

public:
 static System::UInt16 AsUInt16(System::Object ^ var);
public:
 static unsigned short AsUInt16(Platform::Object ^ var);
 static unsigned short AsUInt16(winrt::Windows::Foundation::IInspectable const & var);
public static ushort AsUInt16 (object var);
static member AsUInt16 : obj -> uint16
Public Shared Function AsUInt16 (var As Object) As UShort

Parameters

var
Object

The original value to unbox.

Returns

Returns a UInt16 object.

Applies to