ServerComparer 建構函式 (ServerConnection, String)
Initializes an instance of the ServerComparer class with information from the specified database on the specified connection.
命名空間: Microsoft.SqlServer.Management.Common
組件: Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)
語法
'宣告
Public Sub New ( _
conn As ServerConnection, _
databaseName As String _
)
'用途
Dim conn As ServerConnection
Dim databaseName As String
Dim instance As New ServerComparer(conn, databaseName)
public ServerComparer(
ServerConnection conn,
string databaseName
)
public:
ServerComparer(
ServerConnection^ conn,
String^ databaseName
)
new :
conn:ServerConnection *
databaseName:string -> ServerComparer
public function ServerComparer(
conn : ServerConnection,
databaseName : String
)
參數
- conn
型別:Microsoft.SqlServer.Management.Common.ServerConnection
A ServerConnection object specifying an instance of the Database Engine.
- databaseName
型別:System.String
A String value specifying the name of the database.