XPathExpression.AddSort Method (Object, IComparer)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

When overridden in a derived class, sorts the nodes selected by the XPath expression according to the specified IComparer object.

Namespace:  System.Xml.XPath
Assembly:  System.Xml.XPath (in System.Xml.XPath.dll)

Syntax

'Declaration
Public MustOverride Sub AddSort ( _
    expr As Object, _
    comparer As IComparer _
)
public abstract void AddSort(
    Object expr,
    IComparer comparer
)

Parameters

  • expr
    Type: System.Object
    An object representing the sort key. This can be the string value of the node or an XPathExpression object with a compiled XPath expression.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.