ArcFM Responder Mobile Developer Guide
ToBoolean Method






A value to convert
The conversion value for null and DBNull values
DBNull and null aware conversion to bool
Syntax
'Declaration
 
Public Shared Function ToBoolean( _
   ByVal value As System.Object, _
   ByVal nullValue As System.Boolean _
) As System.Boolean
'Usage
 
Dim value As System.Object
Dim nullValue As System.Boolean
Dim value As System.Boolean
 
value = DbConvert.ToBoolean(value, nullValue)
public static System.bool ToBoolean( 
   System.object value,
   System.bool nullValue
)
public function ToBoolean( 
    value: System.TObject;
    nullValue: System.Boolean
): System.Boolean; static; 
public static function ToBoolean( 
   value : System.Object,
   nullValue : System.boolean
) : System.boolean;
public: static System.bool ToBoolean( 
   System.Object* value,
   System.bool nullValue
) 
public:
static System.bool ToBoolean( 
   System.Object^ value,
   System.bool nullValue
) 

Parameters

value
A value to convert
nullValue
The conversion value for null and DBNull values

Return Value

The bool equivalent of the input value
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

DbConvert Class
DbConvert Members

Send Feedback