Duration.LessThan(Duration, Duration) 运算符

定义

确定 Duration 是否小于另一个实例的值。Determines if a Duration is less than the value of another instance.

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

要比较的第一个 DurationThe first Duration to compare.

t2
Duration

要比较的第二个 DurationThe second Duration to compare.

返回

Boolean

如果 t1t2 都有值,并且 t1 小于 t2,则为 true;否则为 falsetrue if both t1 and t2 have values and t1 is less than t2; otherwise, false.

注解

此结构表示 Windows 运行时 (WinRT) 结构的 .NET 投影 DurationThis struct represents the .NET projection of the Windows Runtime (WinRT) Duration struct. 有关详细信息,请参阅 UWP API 参考中的 持续时间For more information, see Duration in the UWP API reference.

适用于