Share via


ServerComparer-Klasse

Represents the comparer class.

Vererbungshierarchie

System. . :: . .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>

Der ServerComparer-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode ServerComparer(ServerConnection) Initializes an instance of the ServerComparer class with information from the default database on the specified connection.
Öffentliche Methode ServerComparer(ServerConnection, String) Initializes an instance of the ServerComparer class with information from the specified database on the specified connection.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode ToString (Geerbt von Object.)

Zum Anfang

Explizite Schnittstellenimplementierungen

  Name Beschreibung
Explizite SchnittstellenimplementierungPrivate Methode IComparer< (Of < <' (String> ) > > ). . :: . .Compare Compares two specified objects.

Zum Anfang

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.