SqlSyncScopeProvisioning 建構 (SqlConnection, DbSyncScopeDescription, SqlSyncScopeProvisioningType)
使用指定的連接、範圍說明和佈建類型,初始化 SqlSyncScopeProvisioning 類別的新執行個體。
命名空間: Microsoft.Synchronization.Data.SqlServer
組件: Microsoft.Synchronization.Data.SqlServer (在 Microsoft.Synchronization.Data.SqlServer.dll 中)
語法
'宣告
Public Sub New ( _
connection As SqlConnection, _
scopeDescription As DbSyncScopeDescription, _
provisioningType As SqlSyncScopeProvisioningType _
)
'用途
Dim connection As SqlConnection
Dim scopeDescription As DbSyncScopeDescription
Dim provisioningType As SqlSyncScopeProvisioningType
Dim instance As New SqlSyncScopeProvisioning(connection, _
scopeDescription, provisioningType)
public SqlSyncScopeProvisioning(
SqlConnection connection,
DbSyncScopeDescription scopeDescription,
SqlSyncScopeProvisioningType provisioningType
)
public:
SqlSyncScopeProvisioning(
SqlConnection^ connection,
DbSyncScopeDescription^ scopeDescription,
SqlSyncScopeProvisioningType provisioningType
)
new :
connection:SqlConnection *
scopeDescription:DbSyncScopeDescription *
provisioningType:SqlSyncScopeProvisioningType -> SqlSyncScopeProvisioning
public function SqlSyncScopeProvisioning(
connection : SqlConnection,
scopeDescription : DbSyncScopeDescription,
provisioningType : SqlSyncScopeProvisioningType
)
參數
- connection
型別:System.Data.SqlClient. . :: . .SqlConnection
與將要佈建之資料庫的連接。
- scopeDescription
型別:Microsoft.Synchronization.Data. . :: . .DbSyncScopeDescription
範圍的說明。
- provisioningType
型別:Microsoft.Synchronization.Data.SqlServer. . :: . .SqlSyncScopeProvisioningType
這個物件將要用於哪一種佈建類型。