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

Returns the DateTime result from adding this instance to a fractional number of seconds.

[Visual Basic]
Public Function AddSeconds( _
   ByVal value As Double _
) As DateTime
[C#]
public DateTime AddSeconds(
   double value
);
[C++]
public: DateTime AddSeconds(
   double value
);
[JScript]
public function AddSeconds(
   value : double
) : DateTime;

Parameters

value
A fractional number of seconds.

Return Value

The DateTime results from adding a fractional number of seconds to this instance.

Exceptions

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

Remarks

The AddSeconds method is computed by rounding the fractional number of seconds specified by value to the nearest millisecond; that interval is added to this instance of DateTime.

The value parameter argument can be negative.

See Also

DateTime Structure | DateTime Members | System Namespace | Double | Second