Compartilhar via


SqlCeClientSyncProvider Members

Abstracts a client synchronization provider for SQL Server Compact that communicates with the client and shields the synchronization agent from the specific implementation of the client database.

The following tables list the members exposed by the SqlCeClientSyncProvider type.

Public Constructors

  Name Description
SqlCeClientSyncProvider Overloaded. Initializes a new instance of the SqlCeClientSyncProvider class.

Top

Public Properties

  Name Description
Bb726091.pubproperty(en-US,SQL.90).gif ClientId Overridden. Gets or sets the GUID that Synchronization Services uses to identify the client database.
Bb726091.pubproperty(en-US,SQL.90).gif ConflictResolver Gets a SyncConflictResolver object for the client synchronization provider, which determines what action to take when a conflict occurs.
Bb726091.pubproperty(en-US,SQL.90).gif Connection Gets the IDbConnection object that is used to connect to the client database.
Bb726091.pubproperty(en-US,SQL.90).gif ConnectionString Gets or sets the string that is used to connect to the client database.
Bb726091.pubproperty(en-US,SQL.90).gif CreateDatabaseIfNotExists Gets or sets whether to create the client database if it does not exist.
Bb726091.pubproperty(en-US,SQL.90).gif RetentionInDays Gets or sets the number of days that change-tracking metadata is stored in a SQL Server Compact 3.5 database.

Top

Public Methods

(see also Protected Methods )

  Name Description
Bb726091.pubmethod(en-US,SQL.90).gif AcceptChanges Overloaded. Updates tracking metadata so that pending changes at the client are not uploaded during the next synchronization.
Bb726091.pubmethod(en-US,SQL.90).gif ApplyChanges Overloaded. Applies inserts, updates, and deletes for a synchronization group to the client database.
Bb726091.pubmethod(en-US,SQL.90).gif BeginTransaction Overridden. Called by the SyncAgent to begin a transaction. This allows the agent to commit a set of changes as an atomic unit.
Bb726091.pubmethod(en-US,SQL.90).gif CreateSchema Overridden. Creates the table schema in the client database if the schema does not exist.
Bb726091.pubmethod(en-US,SQL.90).gif Dispose Overloaded. Overridden. Releases the resources that are used by SqlCeClientSyncProvider.
Bb726091.pubmethod(en-US,SQL.90).gif EndTransaction Overridden. Called by the SyncAgent to end a transaction. This allows the agent to commit a set of changes as an atomic unit.
Bb726091.pubmethod(en-US,SQL.90).gif Equals  Overloaded. (inherited from Object )
Bb726091.pubmethod(en-US,SQL.90).gif GetChanges Overloaded. Gets inserts, updates, and deletes from the client that occurred since the last time Synchronize or AcceptChanges was called.
Bb726091.pubmethod(en-US,SQL.90).gif GetHashCode  (inherited from Object )
Bb726091.pubmethod(en-US,SQL.90).gif GetTableReceivedAnchor Overridden. Gets a SyncAnchor object that contains the time when the last change was received from the server.
Bb726091.pubmethod(en-US,SQL.90).gif GetTableSentAnchor Overridden. Gets a SyncAnchor object that contains the time when the last change was sent from the client.
Bb726091.pubmethod(en-US,SQL.90).gif GetType  (inherited from Object )
Bb726091.pubmethod(en-US,SQL.90).gif OnInitialized Raises the Initialized event.
Bb726091.pubmethod(en-US,SQL.90).gif Bb726091.static(en-US,SQL.90).gif ReferenceEquals  (inherited from Object )
Bb726091.pubmethod(en-US,SQL.90).gif SetTableReceivedAnchor Overridden. Sets a SyncAnchor object that contains the time that the last change was received from the server.
Bb726091.pubmethod(en-US,SQL.90).gif SetTableSentAnchor Overridden. Sets a SyncAnchor object that contains the time when the last change was sent from the client.
Bb726091.pubmethod(en-US,SQL.90).gif ToString  (inherited from Object )

Top

Protected Methods

  Name Description
Bb726091.protmethod(en-US,SQL.90).gif Dispose Overloaded. Releases the resources that are used by SqlCeClientSyncProvider.
Bb726091.protmethod(en-US,SQL.90).gif Finalize Overridden. Is the destructor for SqlCeClientSyncProvider.
Bb726091.protmethod(en-US,SQL.90).gif MemberwiseClone  (inherited from Object )
Bb726091.protmethod(en-US,SQL.90).gif OnApplyChangeFailed Raises the ApplyChangeFailed event.
Bb726091.protmethod(en-US,SQL.90).gif OnApplyingChanges Raises the ApplyingChanges event.
Bb726091.protmethod(en-US,SQL.90).gif OnChangesApplied Raises the ChangesApplied event.
Bb726091.protmethod(en-US,SQL.90).gif OnChangesSelected Raises the ChangesSelected event.
Bb726091.protmethod(en-US,SQL.90).gif OnCreatingSchema Raises the CreatingSchema event.
Bb726091.protmethod(en-US,SQL.90).gif OnSchemaCreated Raises the SchemaCreated event.
Bb726091.protmethod(en-US,SQL.90).gif OnSelectingChanges Raises the SelectingChanges event.
Bb726091.protmethod(en-US,SQL.90).gif OnSyncProgress Raises the SyncProgress event.

Top

Public Events

  Name Description
Bb726091.pubevent(en-US,SQL.90).gif ApplyChangeFailed Occurs after a row could not be applied at the client.
Bb726091.pubevent(en-US,SQL.90).gif ApplyingChanges Occurs before changes are applied at the client for a synchronization group.
Bb726091.pubevent(en-US,SQL.90).gif ChangesApplied Occurs after all changes are applied at the client for a synchronization group.
Bb726091.pubevent(en-US,SQL.90).gif ChangesSelected Occurs after all changes to be applied to the server for a synchronization group are selected from the client.
Bb726091.pubevent(en-US,SQL.90).gif CreatingSchema Occurs before the schema is created at the client for each table.
Bb726091.pubevent(en-US,SQL.90).gif SchemaCreated Occurs after the schema is created at the client for each table.
Bb726091.pubevent(en-US,SQL.90).gif SelectingChanges Occurs before all changes to be applied to the server for a synchronization group are selected from the client.
Bb726091.pubevent(en-US,SQL.90).gif SyncProgress Occurs during the selection and application of changes for a synchronization group at the client.

Top

See Also

Reference

SqlCeClientSyncProvider Class
Microsoft.Synchronization.Data.SqlServerCe Namespace