次の方法で共有


Boxes.Box Method

Definition

Overloads

Box(Boolean)

Gets the box value specified.

Box(Double)
Box(Int32)
Box(Nullable<Boolean>)

Gets the box value specified.

Box(UInt32)
Box(UInt64)

Box(Boolean)

Gets the box value specified.

public:
 static System::Object ^ Box(bool value);
public:
 static Platform::Object ^ Box(bool value);
 static winrt::Windows::Foundation::IInspectable Box(bool value);
public static object Box (bool value);
static member Box : bool -> obj
Public Shared Function Box (value As Boolean) As Object

Parameters

value
Boolean

The value to return box value for.

Returns

Returns true if the value is true; otherwise returns false.

Applies to

Box(Double)

public:
 static System::Object ^ Box(double value);
public:
 static Platform::Object ^ Box(double value);
 static winrt::Windows::Foundation::IInspectable Box(double value);
public static object Box (double value);
static member Box : double -> obj
Public Shared Function Box (value As Double) As Object

Parameters

value
Double

Returns

Applies to

Box(Int32)

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

Parameters

value
Int32

Returns

Applies to

Box(Nullable<Boolean>)

Gets the box value specified.

public:
 static System::Object ^ Box(Nullable<bool> nullableValue);
public static object Box (bool? nullableValue);
static member Box : Nullable<bool> -> obj
Public Shared Function Box (nullableValue As Nullable(Of Boolean)) As Object

Parameters

nullableValue
Nullable<Boolean>

Value to get box value for.

Returns

Returns the value if not null; otherwise returns null.

Applies to

Box(UInt32)

public:
 static System::Object ^ Box(System::UInt32 value);
public:
 static Platform::Object ^ Box(unsigned int value);
 static winrt::Windows::Foundation::IInspectable Box(unsigned int value);
public static object Box (uint value);
static member Box : uint32 -> obj
Public Shared Function Box (value As UInteger) As Object

Parameters

value
UInt32

Returns

Applies to

Box(UInt64)

public:
 static System::Object ^ Box(System::UInt64 value);
public:
 static Platform::Object ^ Box(unsigned long long value);
 static winrt::Windows::Foundation::IInspectable Box(unsigned long value);
public static object Box (ulong value);
static member Box : uint64 -> obj
Public Shared Function Box (value As ULong) As Object

Parameters

value
UInt64

Returns

Applies to