Share via


ServerComparer Class

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
Public method ServerComparer(ServerConnection) Initializes an instance of the ServerComparer class with information from the default database on the specified connection.
Public method ServerComparer(ServerConnection, String) Initializes an instance of the ServerComparer class with information from the specified database on the specified connection.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method 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.

See Also

Reference

Microsoft.SqlServer.Management.Common Namespace