NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DateTime.ToBoolean

Converts this instance to a Boolean value

[Visual Basic]
Overridable Public Function ToBoolean() As Boolean
[C#]
public virtual bool ToBoolean();
[C++]
public: virtual bool ToBoolean();
[JScript]
public function ToBoolean() : Boolean;

Return Value

The Boolean value for this instance.

Exceptions

Exception Type Condition
InvalidCastException If this DateTime is not a Boolean.

Remarks

The ToBoolean method casts this DateTime instance into a Boolean value. An exception is thrown if this instance cannot be coerced into a Boolean (bool).

See Also

DateTime Structure | DateTime Members | System Namespace | Boolean