語言

Duration.LessThan(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)

適用於