XPathAtomicValue.ValueEquals Method (XPathAtomicValue, Collation, TimeZone)XPathAtomicValue.ValueEquals Method (XPathAtomicValue, Collation, TimeZone)XPathAtomicValue::ValueEquals Method (XPathAtomicValue^, Collation^, TimeZone)
Tests if this XPathAtomicValueXPathAtomicValueXPathAtomicValue is equal to the specified XPathAtomicValueXPathAtomicValueXPathAtomicValue under the specified collation and implicit time zone.
Syntax
Public Function ValueEquals( _ other As XPathAtomicValue, _ collation As Collation, _ implicitTimeZone As TimeZone _ ) As Boolean
public bool ValueEquals( XPathAtomicValue other, Collation collation, TimeZone implicitTimeZone )
public: bool ValueEquals( XPathAtomicValue^ other, Collation^ collation, TimeZone implicitTimeZone )
Parameters
- other
Type: XmlPrime.XPathAtomicValueXmlPrime.XPathAtomicValueXmlPrime::XPathAtomicValue^
The value to compare.
- collation
Type: XmlPrime.CollationXmlPrime.CollationXmlPrime::Collation^
The collation to use for the comparison.
- implicitTimeZone
Type: XmlPrime.TimeZoneXmlPrime.TimeZoneXmlPrime::TimeZone
The implicit time zone.
Return Value
Type: System.BooleanSystem.BooleanSystem::Boolean
trueTruetrue if this value is equal to other; falseFalsefalse otherwise.
Exceptions
| Exception | Condition |
| ArgumentNullExceptionArgumentNullExceptionArgumentNullException | other or collation is null
a null reference (Nothing in Visual Basic)
nullptr. |
| NotSupportedExceptionNotSupportedExceptionNotSupportedException | The values cannot be compared. |
Remarks
Comparison follows the rules of XQuery value comparisons.
