XNodeDocumentOrderComparer Class

Definition

包含比較節點之文件順序的功能。Contains functionality to compare nodes for their document order. 這個類別無法被繼承。This class cannot be inherited.

public ref class XNodeDocumentOrderComparer sealed : System::Collections::Generic::IComparer<System::Xml::Linq::XNode ^>, System::Collections::IComparer
public sealed class XNodeDocumentOrderComparer : System.Collections.Generic.IComparer<System.Xml.Linq.XNode>, System.Collections.IComparer
type XNodeDocumentOrderComparer = class
    interface IComparer<XNode>
    interface IComparer
type XNodeDocumentOrderComparer = class
    interface IComparer
    interface IComparer<XNode>
Public NotInheritable Class XNodeDocumentOrderComparer
Implements IComparer, IComparer(Of XNode)
Inheritance
XNodeDocumentOrderComparer
Implements

Remarks

這個類別 (Class) 會實作 IComparerIComparer<XNode>This class implements IComparer and IComparer<XNode>.

我們建議您不要直接使用這個類別,而是使用 InDocumentOrder 方法。We recommend that instead of using this class directly, you use the InDocumentOrder method. 這個類別是由該方法在內部使用。This class is used internally by that method.

Constructors

XNodeDocumentOrderComparer()

XNodeDocumentOrderComparer 類別的新執行個體初始化。Initializes a new instance of the XNodeDocumentOrderComparer class.

Methods

Compare(XNode, XNode)

比較兩個節點來決定相關的文件順序。Compares two nodes to determine their relative document order.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IComparer.Compare(Object, Object)

比較兩個節點來決定相關的文件順序。Compares two nodes to determine their relative document order.

Applies to

See also