ServerComparer 建構函式 (ServerConnection)
使用指定連接上的預設資料庫資訊,初始化 ServerComparer 類別的執行個體。
命名空間: 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
)
參數
- conn
型別:Microsoft.SqlServer.Management.Common.ServerConnection
指定 Database Engine 執行個體的 ServerConnection 物件。