TimeSpan.op_UnaryNegation Method

Returns a TimeSpan whose value is the negated value of the specified instance.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

public static TimeSpan op_UnaryNegation (
         TimeSpan t
)

Parameters

  • t
    A TimeSpan.

Return Value

A TimeSpan with the same numeric value as this instance, but the opposite sign.

Version Information

Available in the .NET Micro Framework versions 3.0, 3.5, 4.0, and 4.1.

See Also

Reference

TimeSpan Structure
TimeSpan Members
System Namespace