Duration.LessThanOrEqual(Duration, Duration) 運算子

定義

判斷 Duration 是否小於或等於另一個。

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

參數

t1
Duration

要比較的 Duration

t2
Duration

要比較的 Duration

傳回

如果 t1t2 都有值且 t1 小於或等於 t2 則為 true,否則為 false

備註

此結構代表 Windows 執行階段 (WinRT) Duration 結構的 .NET 投影。 如需詳細資訊,請參閱 UWP API 參考中的 持續時間

適用於