SqlSyncProvider Constructor (String, SqlConnection, String)
Initializes a new instance of the SqlSyncProvider class for the specified scope name, connection, and synchronization object prefix.
Namespace: Microsoft.Synchronization.Data.SqlServer
Assembly: Microsoft.Synchronization.Data.SqlServer (in Microsoft.Synchronization.Data.SqlServer.dll)
Syntax
'Declaration
Public Sub New ( _
scopeName As String, _
connection As SqlConnection, _
objectPrefix As String _
)
'Usage
Dim scopeName As String
Dim connection As SqlConnection
Dim objectPrefix As String
Dim instance As New SqlSyncProvider(scopeName, _
connection, objectPrefix)
public SqlSyncProvider(
string scopeName,
SqlConnection connection,
string objectPrefix
)
public:
SqlSyncProvider(
String^ scopeName,
SqlConnection^ connection,
String^ objectPrefix
)
new :
scopeName:string *
connection:SqlConnection *
objectPrefix:string -> SqlSyncProvider
public function SqlSyncProvider(
scopeName : String,
connection : SqlConnection,
objectPrefix : String
)
Parameters
- scopeName
Type: System.String
The name of the scope, which defines the set of tables (with optional filters) to synchronize.
- connection
Type: System.Data.SqlClient.SqlConnection
A SqlConnection object that contains a connection to the database.
- objectPrefix
Type: System.String
The prefix that is optionally specified for the ObjectPrefix property, to identify objects that Sync Framework creates.
Remarks
Scopes are defined during provisioning by using the DbSyncScopeDescription object.