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의 두 번째 인스턴스입니다.

반환

Int32

t1t2보다 작은 경우 두 값 간의 차이를 나타내는 음수 값입니다. t1t2와 같은 경우에는 0입니다. t1t2보다 큰 경우에는 두 값의 차를 나타내는 양수 값입니다.

설명

Duration 속성 값을 사용 하 여 인스턴스 Automatic 다음 반환 값으로는 특수 한 경우.

  • 하는 경우 t1 는 자동 및 t2 는-1이 반환 되지 합니다.

  • 하는 경우 t1 는 자동 및 t2 이 자동으로 0이 반환 됩니다.

  • 하는 경우 t1 자동이 아닐 및 t2 자동으로 1이 반환 됩니다.

적용 대상