Bagikan melalui


Conversions.ToBoolean Method (Object)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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
)

Parameters

Return Value

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

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.