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
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Addition Adds two specified TimeSpan instances.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equality Indicates whether two TimeSpan instances are equal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GreaterThan Indicates whether a specified TimeSpan is greater than another specified TimeSpan.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GreaterThanOrEqual Indicates whether a specified TimeSpan is greater than or equal to another specified TimeSpan.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Inequality Indicates whether two TimeSpan instances are not equal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 LessThan Indicates whether a specified TimeSpan is less than another specified TimeSpan.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 LessThanOrEqual Indicates whether a specified TimeSpan is less than or equal to another specified TimeSpan.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Subtraction Subtracts a specified TimeSpan from another specified TimeSpan.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 UnaryNegation Returns a TimeSpan whose value is the negated value of the specified instance.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 UnaryPlus Returns the specified instance of TimeSpan.

Top