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!

TimeSpan.Subtract

Subtracts a specified TimeSpan value from the current instance.

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

Parameters

ts
The TimeSpan to subtract from the current instance.

Return Value

The difference of the current instance and ts

(that is, the current instance minus ts).

Remarks

To prevent an exception, the difference must be between MinValue and MaxValue.

See Also

TimeSpan Structure | TimeSpan Members | System Namespace