Duration.LessThan(Duration, Duration) Operator

Definition

Bestimmt, ob der Wert einer Instanz Duration kleiner als der Wert einer anderen Instanz 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

true wenn beide t1 Werte enthalten und t2t1 kleiner 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: