Unbox.AsUInt16(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.