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

Negates the current TimeSpan new instance.

[Visual Basic]
Public Function Negate() As TimeSpan
[C#]
public TimeSpan Negate();
[C++]
public: TimeSpan Negate();
[JScript]
public function Negate() : TimeSpan;

Return Value

A TimeSpan represented by the negative value of t.

Remarks

An exception occurs because the magnitude of MinValue is one (1) tick larger than MaxValue.

See Also

TimeSpan Structure | TimeSpan Members | System Namespace