ISyncMetadataStore2::SetMetadataStoreUpgradeNotificationCallback
Registers a callback interface that receives notifications about metadata store file format upgrades.
HRESULT SetMetadataStoreUpgradeNotificationCallback(
IMetadataStoreUpgradeCallback *pUpgradeCallback);
Parameters
- pUpgradeCallback
[in] A callback interface that is notified about metadata store file format upgrades.
Return Value
S_OK
E_POINTER
Remarks
When a metadata store file in the 1.0 format is opened by Sync Framework 2.0, it is automatically upgraded to the 2.0 format, unless the provider registers to receive notification of the upgrade and indicates that the metadata storage service should not upgrade the file format. To register to receive upgrade notifications, pass an IMetadataStoreUpgradeCallback object to SetMetadataStoreUpgradeNotificationCallback before opening the metadata store.