Click or drag to resize
Convert.ToUInt64 Method (DateTime)
Calling this method always throws InvalidCastException.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static ulong ToUInt64(
	DateTime value
)

Parameters

value
Type: System.DateTime
The date and time value to convert.

Return Value

Type: UInt64
This conversion is not supported. No value is returned.
Exceptions
ExceptionCondition
InvalidCastExceptionThis conversion is not supported.
See Also