Share via


ToBoolean Method (String)

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

Converts a string to a Boolean value.

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

Syntax

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

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

Conversions Class

ToBoolean Overload

Microsoft.VisualBasic.CompilerServices Namespace