# Duration.LessThanOrEqual(Duration, Duration)Duration.LessThanOrEqual(Duration, Duration)Duration.LessThanOrEqual(Duration, Duration)Duration.LessThanOrEqual(Duration, Duration) Operator

## 定義

Duration の一方のインスタンスの値が、もう一方のインスタンスの値以下かどうかを確認します。Determines if the value of one instance of Duration is less than or equal to the value of 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``

#### パラメーター

t1
Duration Duration Duration Duration

t2
Duration Duration Duration Duration

#### 戻り値

`t1` および `t2` の両方が値を持ち、`t1``t2` 以下の場合は `true`。それ以外の場合は `false``true` if both `t1` and `t2` have values and `t1` is less than or equal to `t2`; otherwise, `false`.

## 注釈

Foreverは、有限値よりも大きいと見なされます。Forever is considered greater than any finite value. 値との比較Automaticでは`false`、が返されます。Any comparison with an Automatic value returns `false`.

この演算子の同等の方法は次のようになります。Duration.Compare(Duration, Duration)The equivalent method for this operator is Duration.Compare(Duration, Duration)