Duration.Subtraction(Duration, Duration) Operatore

Definizione

Sottrae il valore di un oggetto Duration da quello di un altro.

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

Parametri

t1
Duration

Primo oggetto Duration.

t2
Duration

Oggetto Duration da sottrarre.

Restituisce

Se ogni oggetto Duration include valori, un oggetto Duration che rappresenta il valore di t1 meno t2. Se t1 ha un valore Forever e t2 ha un valore TimeSpan, questo metodo restituisce Forever. In caso contrario, questo metodo restituisce null.

Commenti

Questo struct rappresenta la proiezione .NET dello struct Windows Runtime (WinRT). Duration Per altre informazioni, vedere Durata nella guida di riferimento all'API UWP.

Si applica a