Returns the DateTime result from adding this instance to the specified number of milliseconds.
[Visual Basic] Public Function AddMilliseconds( _ ByVal value As Double _ ) As DateTime [C#] public DateTime AddMilliseconds( double value ); [C++] public: DateTime AddMilliseconds( double value ); [JScript] public function AddMilliseconds( value : double ) : DateTime;
The DateTime value results from adding the specified number of milliseconds to this instance.
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | If the resulting DateTime is outside the supported range. |
The AddMilliseconds method is a computation from a fractional number of minutes of this instance. The result is computed by rounding the number of milliseconds specified by value to the nearest integer and the interval to this instance of DateTime.
The value parameter argument can be negative.
DateTime Structure | DateTime Members | System Namespace | Double | Millisecond