SeekableXPathNavigator::ComparePosition Method (Int64, Int64)

 

When overridden in a derived class, returns a value that describes the document order of the two specified positions.

Namespace:   System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
virtual XmlNodeOrder ComparePosition(
	long long firstPosition,
	long long secondPosition
) abstract

Parameters

firstPosition
Type: System::Int64

The first position in the comparison.

secondPosition
Type: System::Int64

The second position in the comparison.

Return Value

Type: System.Xml::XmlNodeOrder

One of the XmlNodeOrder values that describes the relation of firstPosition to secondPosition in the document.

Exception Condition
ArgumentException

firstPosition or secondPosition is not valid.

Notes to Implementers:

This method should throw an exception for invalid position values.

.NET Framework
Available since 3.0
Return to top
Show: