Unbox.AsBoolean(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 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.