Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents the comparer class.
Inheritance Hierarchy
Object
  Microsoft.SqlServer.Management.Common.ServerComparer
Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)
Syntax
'Declaration
Public NotInheritable Class ServerComparer _
    Implements IComparer(Of String)
'Usage
Dim instance As ServerComparer
public sealed class ServerComparer : IComparer<string>
public ref class ServerComparer sealed : IComparer<String^>
[<SealedAttribute>]
type ServerComparer =  
    class 
        interface IComparer<string>
    end
public final class ServerComparer implements IComparer<String>
The ServerComparer type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | ServerComparer(ServerConnection) | Initializes an instance of the ServerComparer class with information from the default database on the specified connection. | 
| .gif) | ServerComparer(ServerConnection, String) | Initializes an instance of the ServerComparer class with information from the specified database on the specified connection. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Equals | (Inherited from Object.) | 
| .gif) | GetHashCode | (Inherited from Object.) | 
| .gif) | GetType | (Inherited from Object.) | 
| .gif) | ToString | (Inherited from Object.) | 
Top
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| .gif) .gif) | IComparer<String>.Compare | Compares two specified objects. | 
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.