TimeSpan Operators
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Include Protected Members
Include Inherited Members
Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members
The TimeSpan type exposes the following members.
Operators
Name | Description | |
---|---|---|
Addition | Adds two specified TimeSpan instances. | |
Equality | Indicates whether two TimeSpan instances are equal. | |
GreaterThan | Indicates whether a specified TimeSpan is greater than another specified TimeSpan. | |
GreaterThanOrEqual | Indicates whether a specified TimeSpan is greater than or equal to another specified TimeSpan. | |
Inequality | Indicates whether two TimeSpan instances are not equal. | |
LessThan | Indicates whether a specified TimeSpan is less than another specified TimeSpan. | |
LessThanOrEqual | Indicates whether a specified TimeSpan is less than or equal to another specified TimeSpan. | |
Subtraction | Subtracts a specified TimeSpan from another specified TimeSpan. | |
UnaryNegation | Returns a TimeSpan whose value is the negated value of the specified instance. | |
UnaryPlus | Returns the specified instance of TimeSpan. |
Top