Duration.Equality(Duration, Duration) 运算符

定义

确定两个 Duration 案例是否相等。Determines whether two Duration cases are equal.

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

如果两个 Duration 值具有相等属性值,或所有 Duration 值均为 null,则为 true;否则为 falsetrue if both Duration values have equal property values, or if all Duration values are null; 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.

适用于