Duration.Equality(Duration, Duration) Duration.Equality(Duration, Duration) Duration.Equality(Duration, Duration) Duration.Equality(Duration, Duration) Operator

定義

Duration の 2 つのインスタンスが等しいかどうかを判断します。Determines whether two instances of Duration are equal.

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

比較対象の Duration の第 1 インスタンス。The first instance of Duration to compare.

t2
Duration Duration Duration Duration

比較対象の Duration の第 2 インスタンス。The second instance of Duration to compare.

戻り値

Duration の両方のインスタンスが値を持ち、それらの値が等しい場合、または Duration の両方のインスタンスが true の場合は nulltrue if both instances of Duration have values and are equal, or if both instances of Duration are null. それ以外の場合、このメソッドは false を返します。Otherwise, this method returns false.

注釈

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

適用対象