Unbox Class
Unboxes an object that contains a value type into a specific, possibly different value type.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.PlatformUI.Unbox
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
‘선언
Public NotInheritable Class Unbox
public static class Unbox
The Unbox type exposes the following members.
Methods
Name | Description | |
---|---|---|
AsBoolean | Unboxes the specified object into a Boolean object. | |
AsDouble | Unboxes the specified object into a Double object. | |
AsInt16 | Unboxes the specified object into an Int16 object. | |
AsInt32 | Unboxes the specified object into an Int32 object. | |
AsInt64 | Unboxes the specified object into an Int64 object. | |
AsInt8 | Unboxes the specified object into an Int8 object. | |
AsIntPtr | Unboxes the specified object into an IntPtr object. | |
AsUInt16 | Unboxes the specified object into a UInt16 object. | |
AsUInt32 | Unboxes the specified object into a Uint32 object. | |
AsUInt64 | Unboxes the specified object into a Uint64 object. | |
AsUInt8 | Unboxes the specified object into a UInt8 object. |
Top
Remarks
Warning
Value truncation may occur when used this method, because the original source value is cast to the target value without ensuring that the target value can contain the original source value.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.