Export (0) Print
Expand All

Duration Operators and Type Conversions

The Duration type exposes the following members.

  Name Description
Public operator Static member Addition Adds two instances of Duration together.
Public operator Static member Equality Determines whether two instances of Duration are equal.
Public operator Static member GreaterThan Determines if one instance of Duration is greater than another.
Public operator Static member GreaterThanOrEqual Determines whether an instance of Duration is greater than or equal to another instance.
Public operator Static member Implicit(TimeSpan to Duration) Implicitly creates a Duration from a given TimeSpan.
Public operator Static member Inequality Determines if two instances of Duration are not equal.
Public operator Static member LessThan Determines if the value of one instance of Duration is less than the value of another instance.
Public operator Static member LessThanOrEqual Determines if the value of one instance of Duration is less than or equal to the value of another instance.
Public operator Static member Subtraction Subtracts the value of one instance of Duration from another.
Public operator Static member UnaryPlus Returns the specified instance of Duration.
Top
Show:
© 2014 Microsoft