JAMS Developer Guide
ToBoolean(TriState,Boolean) Method


MVPSI.JAMS Namespace > Convert Class > ToBoolean Method : ToBoolean(TriState,Boolean) Method
The TriState to be converted.
The value to return if the TriState is set to NotSpecified.
Converts a TriState enumeration to a boolean.
Syntax
'Declaration
 
Public Overloads Shared Function ToBoolean( _
   ByVal triState As TriState, _
   ByVal defaultValue As System.Boolean _
) As System.Boolean
'Usage
 
Dim triState As TriState
Dim defaultValue As System.Boolean
Dim value As System.Boolean
 
value = Convert.ToBoolean(triState, defaultValue)
public static System.bool ToBoolean( 
   TriState triState,
   System.bool defaultValue
)

Parameters

triState
The TriState to be converted.
defaultValue
The value to return if the TriState is set to NotSpecified.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Convert Class
Convert Members
Overload List