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.ToUInt64

Converts this instance 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

The UInt64value for this instance.

Exceptions

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

Remarks

The ToUInt64 method casts this DateTime instance into a UInt64 value. An exception is thrown if this instance cannot be coerced into an 64-bit unsigned integer (ulong).

See Also

DateTime Structure | DateTime Members | System Namespace | UInt64 | Int64