ServerComparer Class

Represents the comparer class.

Object
  Microsoft.SqlServer.Management.Common.ServerComparer

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

public sealed class ServerComparer : IComparer<string>

The ServerComparer type exposes the following members.

  NameDescription
Public methodServerComparer(ServerConnection)Initializes an instance of the ServerComparer class with information from the default database on the specified connection.
Public methodServerComparer(ServerConnection, String)Initializes an instance of the ServerComparer class with information from the specified database on the specified connection.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIComparer<String>.CompareCompares two specified objects.
Top

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

Community Additions

Show: