XPathAtomicValue.ValueEquals Method (XPathAtomicValue)XPathAtomicValue.ValueEquals Method (XPathAtomicValue)XPathAtomicValue::ValueEquals Method (XPathAtomicValue^)
Tests if this XPathAtomicValueXPathAtomicValueXPathAtomicValue is equal to the specified XPathAtomicValueXPathAtomicValueXPathAtomicValue under the codepoint collation and the current time zone.
Syntax
Public Function ValueEquals( _ other As XPathAtomicValue _ ) As Boolean
public bool ValueEquals( XPathAtomicValue other )
public: bool ValueEquals( XPathAtomicValue^ other )
Parameters
- other
Type: XmlPrime.XPathAtomicValueXmlPrime.XPathAtomicValueXmlPrime::XPathAtomicValue^
The value to compare.
Return Value
Type: System.BooleanSystem.BooleanSystem::Boolean
true
True
true
if this value is equal to other; false
False
false
otherwise.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
other is null
a null reference (Nothing in Visual Basic)
nullptr .
|
InvalidCastExceptionInvalidCastExceptionInvalidCastException | |
NotSupportedExceptionNotSupportedExceptionNotSupportedException | The values cannot be compared. |
Remarks
Comparison follows the rules of XQuery value comparisons.
This method is equivalent to calling passing CodepointCollationCodepointCollationCodepointCollation and CurrentTimeZoneCurrentTimeZoneCurrentTimeZone as arguments to ValueEquals (XPathAtomicValue, Collation, TimeZone)ValueEquals (XPathAtomicValue, Collation, TimeZone)ValueEquals (XPathAtomicValue^, Collation^, TimeZone).