Redigera

Dela via


Duration.Equals Method

Definition

Overloads

Equals(Object)

Determines whether a specified object is equal to a Duration.

Equals(Duration)

Determines whether a specified Duration is equal to this Duration.

Equals(Duration, Duration)

Determines whether two Duration values are equal.

Equals(Object)

Determines whether a specified object is equal to a Duration.

public:
 override bool Equals(System::Object ^ value);
public override bool Equals (object value);
override this.Equals : obj -> bool
Public Overrides Function Equals (value As Object) As Boolean

Parameters

value
Object

Object to check for equality.

Returns

true if value is equal to this Duration; otherwise, false.

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) Duration struct. For more information, see Duration in the UWP API reference.

Applies to

Equals(Duration)

Determines whether a specified Duration is equal to this Duration.

public:
 bool Equals(Windows::UI::Xaml::Duration duration);
public bool Equals (Windows.UI.Xaml.Duration duration);
override this.Equals : Windows.UI.Xaml.Duration -> bool
Public Function Equals (duration As Duration) As Boolean

Parameters

duration
Duration

The Duration to check for equality.

Returns

true if duration is equal to this Duration; otherwise, false.

Applies to

Equals(Duration, Duration)

Determines whether two Duration values are equal.

public:
 static bool Equals(Windows::UI::Xaml::Duration t1, Windows::UI::Xaml::Duration t2);
public static bool Equals (Windows.UI.Xaml.Duration t1, Windows.UI.Xaml.Duration t2);
static member Equals : Windows.UI.Xaml.Duration * Windows.UI.Xaml.Duration -> bool
Public Shared Function Equals (t1 As Duration, t2 As Duration) As Boolean

Parameters

t1
Duration

First Duration to compare.

t2
Duration

Second Duration to compare.

Returns

true if t1 is equal to t2; otherwise, false.

Applies to