Dela via


SqlSyncScopeProvisioning Constructor (DbSyncScopeDescription)

Note: This API is now obsolete.

Initializes a new instance of the SqlSyncScopeProvisioning class for the specified scope.

Namespace:  Microsoft.Synchronization.Data.SqlServer
Assembly:  Microsoft.Synchronization.Data.SqlServer (in Microsoft.Synchronization.Data.SqlServer.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use a constructor that passes in a SqlConnection")> _
Public Sub New ( _
    scopeDescription As DbSyncScopeDescription _
)
'Usage
Dim scopeDescription As DbSyncScopeDescription

Dim instance As New SqlSyncScopeProvisioning(scopeDescription)
[ObsoleteAttribute("Use a constructor that passes in a SqlConnection")]
public SqlSyncScopeProvisioning(
    DbSyncScopeDescription scopeDescription
)
[ObsoleteAttribute(L"Use a constructor that passes in a SqlConnection")]
public:
SqlSyncScopeProvisioning(
    DbSyncScopeDescription^ scopeDescription
)
[<ObsoleteAttribute("Use a constructor that passes in a SqlConnection")>]
new : 
        scopeDescription:DbSyncScopeDescription -> SqlSyncScopeProvisioning
public function SqlSyncScopeProvisioning(
    scopeDescription : DbSyncScopeDescription
)

Parameters

Exceptions

Exception Condition
DbProvisioningException

scopeDescription is empty or null reference (Nothing in Visual Basic).

Remarks

Be aware that when this version of the constructor is used, some newer features are disabled, such as the use of bulk procedures to insert, update, and delete changes during synchronization. To take advantage of these features, use a form of the constructor that takes a SqlConnection parameter.

See Also

Reference

SqlSyncScopeProvisioning Class

SqlSyncScopeProvisioning Overload

Microsoft.Synchronization.Data.SqlServer Namespace