Duration.Compare(Duration, Duration) 메서드

정의

Duration 값을 다른 값과 비교합니다.

public:
 static int Compare(System::Windows::Duration t1, System::Windows::Duration t2);
public static int Compare(System.Windows.Duration t1, System.Windows.Duration t2);
static member Compare : System.Windows.Duration * System.Windows.Duration -> int
Public Shared Function Compare (t1 As Duration, t2 As Duration) As Integer

매개 변수

t1
Duration

비교할 첫 번째 인스턴스입니다 Duration .

t2
Duration

비교할 두 번째 인스턴스입니다 Duration .

반품

보다 t1작으면 t2 차이를 나타내는 음수 값입니다. 같t1으면 t2 0입니다. 보다 t1크면 t2 차이를 나타내는 양수 값입니다.

설명

Duration 속성 값 Automatic 이 있는 인스턴스는 다음과 같은 반환 값이 있는 특수한 경우입니다.

  • t1 자동이고 t2 그렇지 않으면 -1 반환됩니다.

  • 자동이고 t1 자동인 경우 t2 0이 반환됩니다.

  • 자동이 아니고 t1 자동이면 t2 1이 반환됩니다.

적용 대상