Share via


SqlCeSyncProvider Constructor (String, , String)

Initializes a new instance of the SqlCeSyncProvider class for the specified scope name, connection, and synchronization object prefix.

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

Syntax

'Declaration
Public Sub New ( _
    scopeName As String, _
    connection As SqlCeConnection, _
    objectPrefix As String _
)
'Usage
Dim scopeName As String
Dim connection As SqlCeConnection
Dim objectPrefix As String

Dim instance As New SqlCeSyncProvider(scopeName, _
    connection, objectPrefix)
public SqlCeSyncProvider(
    string scopeName,
    SqlCeConnection connection,
    string objectPrefix
)
public:
SqlCeSyncProvider(
    String^ scopeName, 
    SqlCeConnection^ connection, 
    String^ objectPrefix
)
new : 
        scopeName:string * 
        connection:SqlCeConnection * 
        objectPrefix:string -> SqlCeSyncProvider
public function SqlCeSyncProvider(
    scopeName : String, 
    connection : SqlCeConnection, 
    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: SqlCeConnection
    A SqlCeConnection 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.

See Also

Reference

SqlCeSyncProvider Class

SqlCeSyncProvider Overload

Microsoft.Synchronization.Data.SqlServerCe Namespace