Collation ClassCollation ClassCollation Class

Represents a collation for use in XQuery and XPath functions.

Inheritance Hierarchy

Syntax

Public MustInherit Class Collation
public abstract class Collation
public:
ref class Collation abstract
 
The CollationCollationCollation type exposes the following members.

Constructors

 ConstructorDescription
Protected methodCollationCollationCollation Initializes a new instance of the CollationCollationCollation class.

Top

Properties

Top

Methods

 MethodDescription
Public methodAreEqualAreEqualAreEqual Compares two specified stringStringString values for equality under this collation.
Public methodCompare (string, int, string, int, int)Compare (String, Integer, String, Integer, Integer)Compare (String^, int, String^, int, int) Compares two specified stringStringString objects.
Public methodCompare (string, string)Compare (String, String)Compare (String^, String^) Compares two specified stringStringString objects under this collation.
Public methodstaticCultureCollation (CultureInfo)CultureCollation (CultureInfo)CultureCollation (CultureInfo^) Creates a new CollationCollationCollation instance which uses a CultureInfoCultureInfoCultureInfo to perform string comparisons.
Public methodstaticCultureCollation (CultureInfo, CompareOptions, XmlCaseOrder)CultureCollation (CultureInfo, CompareOptions, XmlCaseOrder)CultureCollation (CultureInfo^, CompareOptions, XmlCaseOrder) Creates a new CollationCollationCollation instance which uses a CultureInfoCultureInfoCultureInfo and XmlCaseOrderXmlCaseOrderXmlCaseOrder to perform string comparisons.
Public methodstaticCultureCollation (CultureInfo, XmlCaseOrder)CultureCollation (CultureInfo, XmlCaseOrder)CultureCollation (CultureInfo^, XmlCaseOrder) Creates a new CollationCollationCollation instance which uses a CultureInfoCultureInfoCultureInfo and XmlCaseOrderXmlCaseOrderXmlCaseOrder to perform string comparisons.
Public methodEndsWithEndsWithEndsWith Returns a boolean value indicating whether one string ends with a specified suffix under this collation.
Public methodObject.EqualsObject.EqualsObject::EqualsDetermines whether the specified object is equal to the current object.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Protected methodObject.FinalizeObject.FinalizeObject::FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodGetHashCode (string)GetHashCode (String)GetHashCode (String^) Gets a hash code for the specified stringStringString under this collation.
Public methodObject.GetHashCodeObject.GetHashCodeObject::GetHashCodeServes as the default hash function. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodGetSortKeyGetSortKeyGetSortKey Gets the sort key for the specified stringStringString as a byte array under this collation.
Public methodObject.GetTypeObject.GetTypeObject::GetTypeGets the TypeTypeType of the current instance.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodIndexOfIndexOfIndexOf Returns the index of the first occurrence of a stringStringString within another stringStringString under this collation.
Public methodIsEmptyIsEmptyIsEmpty Returns a boolean value indicating whether a stringStringString is equal to the empty string under this collation.
Protected methodObject.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseCloneCreates a shallow copy of the current objectObjectobject.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodStartsWithStartsWithStartsWith Returns a boolean value indicating whether one string starts with a specified prefix under this collation.
Public methodSubstringAfterSubstringAfterSubstringAfter Returns the substring of a stringStringString that follows the first occurrence of the specified substring under this collation.
Public methodSubstringBeforeSubstringBeforeSubstringBefore Returns the substring of a stringStringString that precedes the first occurrence of the the specified substring.
Public methodObject.ToStringObject.ToStringObject::ToStringReturns a string that represents the current object.(Inherited from System.ObjectSystem.ObjectSystem::Object)

Top

Remarks

A collation is used to determine the sorting order of strings of characters.

Built in implementations of CollationCollationCollation are accessible through the CultureCollation (CultureInfo, CompareOptions, XmlCaseOrder)CultureCollation (CultureInfo, CompareOptions, XmlCaseOrder)CultureCollation (CultureInfo^, CompareOptions, XmlCaseOrder) method and the CodepointCollationCodepointCollationCodepointCollation property.