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!

Boolean.ToUInt64

Converts a Boolean to a UInt64.

[Visual Basic]
Overridable Public Function ToUInt64() As UInt64
[C#]
public virtual ulong ToUInt64();
[C++]
public: virtual unsigned __int64 ToUInt64();
[JScript]
public function ToUInt64() : UInt64;

Return Value

A number as a UInt64.

Exceptions

Exception Type Condition
InvalidCastException If it doesn't return a UInt64.

Remarks

The ToUInt64 method converts a Boolean value into a UInt64 and returns the Boolean value for this instance. True is converted to one, and false is converted to zero (see ToUInt64 for more information).

See Also

Boolean Structure | Boolean Members | System Namespace | Convert