XNodeDocumentOrderComparer 類別

定義

包含比較節點之文件順序的功能。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
    interface IComparer<XNode>
Public NotInheritable Class XNodeDocumentOrderComparer
Implements IComparer, IComparer(Of XNode)
繼承
XNodeDocumentOrderComparer
實作

備註

這個類別 (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.

建構函式

XNodeDocumentOrderComparer()

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

方法

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.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

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

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

明確介面實作

IComparer.Compare(Object, Object)

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

適用於

另請參閱