共用方式為


ServerComparer 建構函式 (ServerConnection)

Initializes an instance of the ServerComparer class with information from the default database on the specified connection.

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

語法

'宣告
Public Sub New ( _
    conn As ServerConnection _
)
'用途
Dim conn As ServerConnection

Dim instance As New ServerComparer(conn)
public ServerComparer(
    ServerConnection conn
)
public:
ServerComparer(
    ServerConnection^ conn
)
new : 
        conn:ServerConnection -> ServerComparer
public function ServerComparer(
    conn : ServerConnection
)

參數