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;
The UInt64value for this instance.
Exception Type | Condition |
---|---|
InvalidCastException | If this DateTime is not a UInt64value. |
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).
DateTime Structure | DateTime Members | System Namespace | UInt64 | Int64