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;
The DateTime results from adding the ticks to this instance.
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | If the resulting DateTime is outside the supported range. |
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.
DateTime Structure | DateTime Members | System Namespace | Int64 | Ticks