共用方式為


ServerComparer 類別

Represents the comparer class.

繼承階層

System. . :: . .Object
  Microsoft.SqlServer.Management.Common..::..ServerComparer

命名空間:  Microsoft.SqlServer.Management.Common
組件:  Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)

語法

'宣告
Public NotInheritable Class ServerComparer _
    Implements IComparer(Of String)
'用途
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>

ServerComparer 型別公開下列成員。

建構函式

  名稱 說明
公用方法 ServerComparer(ServerConnection) Initializes an instance of the ServerComparer class with information from the default database on the specified connection.
公用方法 ServerComparer(ServerConnection, String) Initializes an instance of the ServerComparer class with information from the specified database on the specified connection.

上層

方法

  名稱 說明
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 ToString (繼承自 Object。)

上層

明確 繼承 實作

  名稱 說明
明確介面實作私用方法 IComparer< (Of < <' (String> ) > > ). . :: . .Compare Compares two specified objects.

上層

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。