Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initializes a new instance of the SqlCeSyncProvider class for the specified scope name and connection.
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 _
)
'Usage
Dim scopeName As String
Dim connection As SqlCeConnection
Dim instance As New SqlCeSyncProvider(scopeName, connection)
[SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public SqlCeSyncProvider (
string scopeName,
SqlCeConnection connection
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA2214:DoNotCallOverridableMethodsInConstructors")]
public:
SqlCeSyncProvider (
String^ scopeName,
SqlCeConnection^ connection
)
/** @attribute SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors") */
public SqlCeSyncProvider (
String scopeName,
SqlCeConnection connection
)
SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")
public function SqlCeSyncProvider (
scopeName : String,
connection : SqlCeConnection
)
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.
Remarks
Scopes are defined during provisioning by using the DbSyncScopeDescription object.
See Also
Reference
SqlCeSyncProvider Class
SqlCeSyncProvider Members
Microsoft.Synchronization.Data.SqlServerCe Namespace