DateTimeWithZone.Equals Method (DateTimeWithZone)DateTimeWithZone.Equals Method (DateTimeWithZone)DateTimeWithZone::Equals Method (DateTimeWithZone)
Syntax
Public Function Equals( _ other As DateTimeWithZone _ ) As Boolean
public bool Equals( DateTimeWithZone other )
public: virtual bool Equals( DateTimeWithZone other ) sealed
Parameters
- other
Type: XmlPrime.DateTimeWithZoneXmlPrime.DateTimeWithZoneXmlPrime::DateTimeWithZone
A DateTimeWithZoneDateTimeWithZoneDateTimeWithZone to compare with this value.
Return Value
Type: System.BooleanSystem.BooleanSystem::Boolean
true
True
true
if other equals the value of this instance; otherwise, false
False
false
.
Remarks
Two DateTimeWithZoneDateTimeWithZoneDateTimeWithZone values are considered equal if they have they have equal values for their DaysPastEpochDaysPastEpochDaysPastEpoch, SecondsPastMidnightSecondsPastMidnightSecondsPastMidnight and TimeZoneTimeZoneTimeZone properties.
Consider using Equals (DateTimeWithZone, DateTimeWithZone, TimeZone)Equals (DateTimeWithZone, DateTimeWithZone, TimeZone)Equals (DateTimeWithZone, DateTimeWithZone, TimeZone) to compare DateTimeWithZoneDateTimeWithZoneDateTimeWithZone values with differing TimeZoneTimeZoneTimeZone properties.