C#/XAML for HTML5 Documentation
C#/XAML for HTML5 Documentation
Reference
System
Convert Class
Convert Methods
ToBoolean Method
ToBoolean Method (Boolean)
ToBoolean Method (Byte)
ToBoolean Method (Char)
ToBoolean Method (DateTime)
ToBoolean Method (Decimal)
ToBoolean Method (Double)
ToBoolean Method (Int16)
ToBoolean Method (Int32)
ToBoolean Method (Int64)
ToBoolean Method (Object)
ToBoolean Method (SByte)
ToBoolean Method (Single)
ToBoolean Method (String)
ToBoolean Method (UInt16)
ToBoolean Method (UInt32)
ToBoolean Method (UInt64)
ToBoolean Method (Object, IFormatProvider)
ToBoolean Method (String, IFormatProvider)
Convert
ToBoolean Method (DateTime)
Calling this method always throws
InvalidCastException
.
Namespace:
System
Assembly:
mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
Copy
public
static
bool
ToBoolean
(
DateTime
value
)
Parameters
value
Type:
System
DateTime
The date and time value to convert.
Return Value
Type:
Boolean
This conversion is not supported. No value is returned.
Exceptions
Exception
Condition
InvalidCastException
This conversion is not supported.
See Also
Reference
Convert Class
ToBoolean Overload
System Namespace