Duration.GreaterThan(Duration, Duration) Duration.GreaterThan(Duration, Duration) Duration.GreaterThan(Duration, Duration) Duration.GreaterThan(Duration, Duration) Operator

Definizione

Determina se un'istanza di Duration è maggiore di un'altra.Determines if one instance of Duration is greater than another.

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

Parametri

t1
Duration Duration Duration Duration

Prima istanza di Duration da confrontare.The first instance of Duration to compare.

t2
Duration Duration Duration Duration

Seconda istanza di Duration da confrontare.The second instance of Duration to compare.

Restituisce

true se sia t1 che t2 hanno valori e t1 è maggiore di t2; in caso contrario, false.true if both t1 and t2 have values and t1 is greater than t2; otherwise, false.

Commenti

Forever viene considerato maggiore rispetto a qualsiasi valore finito.Forever is considered greater than any finite value. Qualsiasi confronto con un Automatic valore restituisce false.Any comparison with an Automatic value returns false.

È il metodo equivalente per l'operatore Duration.Compare(Duration, Duration)The equivalent method for this operator is Duration.Compare(Duration, Duration)

Si applica a