次の方法で共有


Unbox.AsBoolean(Object) Method

Definition

Unboxes the specified object into a Boolean object.

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

Parameters

var
Object

The original value to unbox.

Returns

Returns a Boolean object.

Applies to