Duration.LessThanOrEqual(Duration, Duration) Duration.LessThanOrEqual(Duration, Duration) Duration.LessThanOrEqual(Duration, Duration) Duration.LessThanOrEqual(Duration, Duration) Operator

Definizione

Determina se il valore di un'istanza di Duration è minore o uguale a quello di un'altra istanza.Determines if the value of one instance of Duration is less than or equal to the value of another instance.

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 è minore o uguale a t2; in caso contrario, false.true if both t1 and t2 have values and t1 is less than or equal to t2; otherwise, false.

Commenti

Foreverviene considerato maggiore di 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 questo operatore èDuration.Compare(Duration, Duration)The equivalent method for this operator is Duration.Compare(Duration, Duration)

Si applica a