Share via


ToBoolean Method (Object)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Converts an object to a Boolean value.

Namespace:  Microsoft.VisualBasic.CompilerServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

Syntax

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

Parameters

Return Value

Type: System. . :: . .Boolean
A Boolean value. Returns False if the object is null; otherwise, True.

.NET Framework Security

See Also

Reference

Conversions Class

ToBoolean Overload

Microsoft.VisualBasic.CompilerServices Namespace