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.
- order
Type: System.Xml.XPath.XmlSortOrder
An XmlSortOrder value indicating the sort order.
- caseOrder
Type: System.Xml.XPath.XmlCaseOrder
An XmlCaseOrder value indicating how to sort uppercase and lowercase letters.
- 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.
- dataType
Type: System.Xml.XPath.XmlDataType
An XmlDataType value indicating the sort order for the data type.
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.