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

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;

Parameters

value
A number of milliseconds.

Return Value

The DateTime value results from adding the specified number of milliseconds to this instance.

Exceptions

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

Remarks

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.

See Also

DateTime Structure | DateTime Members | System Namespace | Double | Millisecond