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

Returns the DateTime result of adding this instance to a TimeSpan.

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

Parameters

value
The TimeSpan added to this instance.

Return Value

The DateTime value that results from adding the specified TimeSpan to this instance.

Exceptions

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

Remarks

A specified TimeSpan is added to this instance of DateTime, and the result is returned as a new DateTime.

See Also

DateTime Structure | DateTime Members | System Namespace | TimeSpan