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

Returns the DateTime result from adding this instance to the specified number of 100-nanosecond ticks.

[Visual Basic]
Public Function AddTicks( _
   ByVal value As Long _
) As DateTime
[C#]
public DateTime AddTicks(
   long value
);
[C++]
public: DateTime AddTicks(
   __int64 value
);
[JScript]
public function AddTicks(
   value : long
) : DateTime;

Parameters

value
The number of 100-nanosecond ticks.

Return Value

The DateTime results from adding the ticks to this instance.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException If the resulting DateTime is outside the supported range.

Remarks

The AddTicks method returns the DateTime value resulting from adding the specific number of 100-nanosecond ticks to this instance of DateTime.

The value parameter argument can be negative.

See Also

DateTime Structure | DateTime Members | System Namespace | Int64 | Ticks