Sdílet prostřednictvím


ISimpleSyncProvider Interface

Represents a simple provider that is used to synchronize a replica. You will typically implement IAnchorSyncProvider or IFullEnumerationSyncProvider.

interface ISimpleSyncProvider : ISyncProvider

Members

ISimpleSyncProvider method Description

ISimpleSyncProvider::BeginSession

When overridden in a derived class, called by the Sync Framework runtime at the start of each session. This method is called only once before calls to other provider methods or properties.

ISimpleSyncProvider::GetMetadataStore

Called by the Sync Framework runtime to return an ISyncMetadataStore object for a replica.

ISimpleSyncProvider::GetMetadataSchema

Enables the Sync Framework runtime to pass a callback that is used to add an ITEM_METADATA_SCHEMA object.

ISimpleSyncProvider::GetProviderVersion

Returns the version number for the simple provider.

ISimpleSyncProvider::LoadChangeData

Called by the Sync Framework runtime to load the change data for the item with the specified key.

ISimpleSyncProvider::ReleaseItemFields

Called to release the memory that was allocated to the specified ITEM_FIELDS object.

ISimpleSyncProvider::InsertItem

Called by the Sync Framework runtime to insert an item into the destination store.

ISimpleSyncProvider::UpdateItem

Called by the Sync Framework runtime to update an item in the destination store.

ISimpleSyncProvider::DeleteItem

Called by the Sync Framework runtime to delete an item from the destination store.

ISimpleSyncProvider::EndSession

Called by the Sync Framework runtime at the end of each session unless a session is ended because of an error.

Requirements

Header: FullEnumerationProvider.h

See Also

Concepts

Sync Framework Simple Provider Components