Delen via


Unbox.AsBoolean Method

Unboxes the specified object into a Boolean object.

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Shared Function AsBoolean ( _
    var As Object _
) As Boolean
public static bool AsBoolean(
    Object var
)
public:
static bool AsBoolean(
    Object^ var
)
static member AsBoolean : 
        var:Object -> bool
public static function AsBoolean(
    var : Object
) : boolean

Parameters

  • var
    Type: Object

    The original value to unbox.

Return Value

Type: Boolean
Returns a Boolean object.

.NET Framework Security

See Also

Reference

Unbox Class

Microsoft.VisualStudio.PlatformUI Namespace