Duration.Equals Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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
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
Returns
true
if t1
is equal to t2
; otherwise, false
.