Duration.Subtraction(Duration, Duration) Duration.Subtraction(Duration, Duration) Duration.Subtraction(Duration, Duration) Duration.Subtraction(Duration, Duration) Operator

Definizione

Sottrae il valore di un'istanza di Duration da quello di un'altra istanza.Subtracts the value of one instance of Duration from another.

public:
 static System::Windows::Duration operator -(System::Windows::Duration t1, System::Windows::Duration t2);
public static System.Windows.Duration operator - (System.Windows.Duration t1, System.Windows.Duration t2);
static member ( - ) : System.Windows.Duration * System.Windows.Duration -> System.Windows.Duration
Public Shared Operator - (t1 As Duration, t2 As Duration) As Duration

Parametri

t1
Duration Duration Duration Duration

Prima istanza di Duration.The first instance of Duration.

t2
Duration Duration Duration Duration

Istanza di Duration da sottrarre.The instance of Duration to subtract.

Restituisce

Se entrambe le istanze di Duration dispongono di valori, un'istanza di Duration che rappresenta il valore di t1 meno t2.If both instances of Duration have values, an instance of Duration that represents the value of t1 minus t2. Se t1 ha un valore Forever e t2 ha un valore TimeSpan, questo metodo restituisce Forever.If t1 has a value of Forever and t2 has a value of TimeSpan, this method returns Forever. In caso contrario, questo metodo restituisce null.Otherwise this method returns null.

Commenti

I calcoli seguenti restituiscono tutti un valore Automaticdi.The following calculations all return a value of Automatic.

Il metodo equivalente per questo operatore èDuration.Subtract(Duration)The equivalent method for this operator is Duration.Subtract(Duration)

Si applica a