Share via


SqlCeSyncProvider Constructor (String, SqlCeConnection, String)

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

This constructor is not CLS-compliant.  

Namespace: Microsoft.Synchronization.Data.SqlServerCe
Assembly: Microsoft.Synchronization.Data.SqlServerCe (in microsoft.synchronization.data.sqlserverce.dll)

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")> _
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)
[SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] 
public SqlCeSyncProvider (
    string scopeName,
    SqlCeConnection connection,
    string objectPrefix
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA2214:DoNotCallOverridableMethodsInConstructors")] 
public:
SqlCeSyncProvider (
    String^ scopeName, 
    SqlCeConnection^ connection, 
    String^ objectPrefix
)
/** @attribute SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors") */ 
public SqlCeSyncProvider (
    String scopeName, 
    SqlCeConnection connection, 
    String objectPrefix
)
SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors") 
public function SqlCeSyncProvider (
    scopeName : String, 
    connection : SqlCeConnection, 
    objectPrefix : String
)

Parameters

  • scopeName
    The name of the scope, which defines the set of tables (with optional filters) to synchronize.
  • connection
    A SqlCeConnection object that contains a connection to the database.
  • objectPrefix
    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 Members
Microsoft.Synchronization.Data.SqlServerCe Namespace