語言

Duration.GreaterThan(Duration, Duration) 運算子

定義

判斷 的 Duration 某一個實例是否比另一個更強。

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

參數

t1
Duration

第一個例子 Duration 是比較。

t2
Duration

第二個例子 Duration 是比較。

傳回

true若 和 t1 都有t2值且 t1 大於t2;否則 。 false

備註

Forever 被視為大於任何有限值。 任何與 Automatic 的比較都會返回 false。

此運算子的等價方法為 Duration.Compare(Duration, Duration)

適用於