Share via


CollationInfo Class

Provides information about a specific database collation.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.SqlParser.Metadata.CollationInfo

Namespace:  Microsoft.SqlServer.Management.SqlParser.Metadata
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Public Class CollationInfo _
    Implements ICollation, IMetadataObject
'Usage
Dim instance As CollationInfo
public class CollationInfo : ICollation, 
    IMetadataObject
public ref class CollationInfo : ICollation, 
    IMetadataObject
type CollationInfo =  
    class
        interface ICollation
        interface IMetadataObject
    end
public class CollationInfo implements ICollation, IMetadataObject

The CollationInfo type exposes the following members.

Properties

  Name Description
Public propertyStatic member Collations Gets a collection of supported collations.
Public property Comparer Gets an IComparer<T> object that can be used to compare strings.
Public propertyStatic member Default Gets an instance of CollationInfo that represents the default collation. The default collation is 'SQL_Latin1_General_CP1_CI_AS'.
Public property EqualityComparer Gets an IEqualityComparer<T> object that can be used to compare strings for equality.
Public property Name Gets the name of the collation.
Public propertyStatic member Ordinal Gets the CollationInfo object that internally performs case-sensitive ordinal string comparisons.
Public propertyStatic member OrdinalIgnoreCase Gets the CollationInfo object that internally performs case-insensitive ordinal string comparisons.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public methodStatic member GetCollationInfo(String) Gets the CollationInfo object that has the specified name.
Public methodStatic member GetCollationInfo(ICollation) Gets the CollationInfo object for the specified ICollation object.
Public methodStatic member GetCollationInfo(Int32, CompareOptions) Gets the CollationInfo object for the specified culture identifier and comparison options.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IsPrefix Determines whether the specified source string starts with the specified prefix.
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Returns a string representation of the current object. (Overrides Object.ToString().)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IMetadataObject.Accept<T> Accepts a visit from the specified IMetadataObjectVisitor<T> object.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.