# Duration.Inequality(Duration, Duration)Duration.Inequality(Duration, Duration)Duration.Inequality(Duration, Duration)Duration.Inequality(Duration, Duration) Operator

## Definizione

Determina se due istanze di Duration non sono uguali.Determines if two instances of Duration are not equal.

``````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 op_Inequality : 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 un solo oggetto tra `t1` e `t2` rappresenta un valore o se entrambi rappresentano valori non uguali; in caso contrario, `false`.`true` if exactly one of `t1` or `t2` represent a value, or if they both represent values that are not equal; otherwise, `false`.

## Commenti

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