IProviderUpgradeCallback::OnItemMetadataDeserialized Method

Occurs one time for each item that is read from the serialized metadata.

Namespace:  Microsoft.Synchronization.MetadataStorage
Assembly:  Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)

void OnItemMetadataDeserialized(
	ItemMetadata^ itemMetadata, 
	Dictionary<String^, SyncFieldValue^>^ extraFields
)

Parameters

itemMetadata
Type: Microsoft.Synchronization.MetadataStorage::ItemMetadata
The metadata of the item in the upgraded format.
extraFields
Type: System.Collections.Generic::Dictionary<String, SyncFieldValue>
The extra fields that exist in the serialized metadata but that are not specified in the list of custom fields for the new metadata schema. Set to a nullptr when there are no extra fields.

When a provider receives this method, it can examine the extra fields listed in extraFields, and perform any necessary changes to fix up the item metadata, such as merging data from an extra field from the old schema into an existing field in the upgraded schema contained in itemMetadata.

Show: