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

Converts this instance into an Int64.

[Visual Basic]
Overridable Public Function ToInt64() As Long
[C#]
public virtual long ToInt64();
[C++]
public: virtual __int64 ToInt64();
[JScript]
public function ToInt64() : long;

Return Value

The Int64 value for this instance.

Exceptions

Exception Type Condition
InvalidCastException If this DateTime is not an Int64 value.

Remarks

The ToInt64 method casts this DateTime instance into an Int64 value. An exception is thrown if this instance cannot be coerced into a 64-bit signed integer (long).

See Also

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