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
此对象将要用于的设置的类型。