Duration.Equality(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

返回

如果两个 Duration 值具有相等属性值,或所有 Duration 值均为 null,则为 true;否则为 false

注解

此结构表示 Windows 运行时 (WinRT) Duration 结构的 .NET 投影。 有关详细信息,请参阅 UWP API 参考中的 持续时间

适用于