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 Constructor (Int64)

Initializes a new instance of the DateTime class to a specified number of Ticks.

[Visual Basic]
Overloads Public Sub New( _
   ByVal ticks As Long _
)
[C#]
public DateTime(
   long ticks
);
[C++]
public: DateTime(
   __int64 ticks
);
[JScript]
public function DateTime(
   ticks : long
);

Parameters

ticks
Number of 100-nanosecond intervals since 1/1/0001 12:00 AM.

Exceptions

Exception Type Condition
ArgumentException If ticks is less than DateTime.MinValue or greater than DateTime.MaxValue.

Remarks

This DateTime class initializes a new DateTime value that uses the ticks values for MinValue and MaxValue.

See Also

DateTime Structure | DateTime Members | System Namespace | DateTime Constructor Overload List | Int64 | Ticks