Duration.GreaterThan Operator (Duration, Duration)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

equivalentCodeEntityM:System.Windows.Duration.Compare(System.Windows.Duration,System.Windows.Duration)

Determines if one instance of Duration is greater than another.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

static let inline (>)
        t1:Duration *
        t2:Duration : bool

Parameters

t1
Type: System.Windows.Duration

The first instance of Duration to compare.

t2
Type: System.Windows.Duration

The second instance of Duration to compare.

Return Value

Type: System.Boolean

true if both t1 and t2 have values and t1 is greater than t2; otherwise, false.

Forever is considered greater than any finite value. Any comparison with an Automatic value returns false.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: