Modifier

Partager via


Duration.Equals Method

Definition

Indicates whether a specified object is equal to an instance of Duration.

Overloads

Equals(Object)

Determines whether a specified object is equal to an instance of Duration.

Equals(Duration)

Determines whether a specified Duration is equal to this instance of Duration.

Equals(Duration, Duration)

Determines whether two instances of Duration are equal.

Equals(Object)

Determines whether a specified object is equal to an instance of 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 the current instance of Duration; otherwise, false.

Applies to

Equals(Duration)

Determines whether a specified Duration is equal to this instance of Duration.

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

Parameters

duration
Duration

Instance of Duration to check for equality.

Returns

true if duration is equal to the current instance of Duration; otherwise, false.

Applies to

Equals(Duration, Duration)

Determines whether two instances of Duration are equal.

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

Parameters

t1
Duration

First instance of Duration to compare.

t2
Duration

Second instance of Duration to compare.

Returns

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

Applies to