次の方法で共有


XPathExpression.AddSort Method (Object, XmlSortOrder, XmlCaseOrder, String, XmlDataType)

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 supplied parameters.

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

Syntax

'Declaration
Public MustOverride Sub AddSort ( _
    expr As Object, _
    order As XmlSortOrder, _
    caseOrder As XmlCaseOrder, _
    lang As String, _
    dataType As XmlDataType _
)
public abstract void AddSort(
    Object expr,
    XmlSortOrder order,
    XmlCaseOrder caseOrder,
    string lang,
    XmlDataType dataType
)

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.
  • lang
    Type: System.String
    The language to use for comparison. Uses the CultureInfo class that can be passed to the Compare method for the language types, for example, "us-en" for U.S. English. If an empty string is specified, the system environment is used to determine the CultureInfo.

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.