Bearbeiten

Freigeben über


Duration.GreaterThanOrEqual(Duration, Duration) Operator

Definition

Determines whether an instance of Duration is greater than or equal to another instance.

public:
 static bool operator >=(System::Windows::Duration t1, System::Windows::Duration t2);
public static bool operator >= (System.Windows.Duration t1, System.Windows.Duration t2);
static member ( >= ) : System.Windows.Duration * System.Windows.Duration -> bool
Public Shared Operator >= (t1 As Duration, t2 As Duration) As Boolean

Parameters

t1
Duration

The first instance of Duration to compare.

t2
Duration

The second instance of Duration to compare.

Returns

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

Remarks

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

The equivalent method for this operator is Duration.Compare(Duration, Duration)

Applies to