TimeWithZone.Equals Method (object)TimeWithZone.Equals Method (Object)TimeWithZone::Equals Method (object^)

Determines whether this instance is equal to a specified object.

Syntax

Public Overrides Function Equals( _
    obj As Object _
) As Boolean
public override bool Equals(
    object obj
)
public:
virtual bool Equals(
    object^ obj
) override
 

Parameters

obj

Type: System.ObjectSystem.ObjectSystem::Object^

An object to compare to this instance.

Return Value

Type: System.BooleanSystem.BooleanSystem::Boolean

trueTruetrue if obj is an instance of TimeWithZoneTimeWithZoneTimeWithZone and equals the value of this instance; otherwise falseFalsefalse.

Remarks

Two TimeWithZoneTimeWithZoneTimeWithZone values are considered equal if they have they have equal values for their SecondsPastMidnightSecondsPastMidnightSecondsPastMidnight and TimeZoneTimeZoneTimeZone properties.