Duration.GreaterThan(Duration, Duration) Operator

Definition

Bestimmt, ob eine Instanz größer Duration als eine andere ist.

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

Parameter

t1
Duration

Die erste Zu vergleichende Duration Instanz.

t2
Duration

Die zweite Instanz des Vergleichs Duration .

Gibt zurück

truewenn beide t1 Werte vorhanden sind und t2t1 größer als t2; andernfalls false.

Hinweise

Forever wird als größer als jeder endliche Wert betrachtet. Ein beliebiger Vergleich mit einem Automatic Wert wird zurückgegeben false.

Die entsprechende Methode für diesen Operator ist Duration.Compare(Duration, Duration)

Gilt für: