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)

Syntax

'Declaration
Sub OnItemMetadataDeserialized ( _
    itemMetadata As ItemMetadata, _
    extraFields As Dictionary(Of String, SyncFieldValue) _
)
'Usage
Dim instance As IProviderUpgradeCallback
Dim itemMetadata As ItemMetadata
Dim extraFields As Dictionary(Of String, SyncFieldValue)

instance.OnItemMetadataDeserialized(itemMetadata, _
    extraFields)
void OnItemMetadataDeserialized(
    ItemMetadata itemMetadata,
    Dictionary<string, SyncFieldValue> extraFields
)
void OnItemMetadataDeserialized(
    ItemMetadata^ itemMetadata, 
    Dictionary<String^, SyncFieldValue^>^ extraFields
)
abstract OnItemMetadataDeserialized : 
        itemMetadata:ItemMetadata * 
        extraFields:Dictionary<string, SyncFieldValue> -> unit 
function OnItemMetadataDeserialized(
    itemMetadata : ItemMetadata, 
    extraFields : Dictionary<String, SyncFieldValue>
)

Parameters

  • 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 null reference (Nothing in Visual Basic) when there are no extra fields.

Remarks

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.

See Also

Reference

IProviderUpgradeCallback Interface

Microsoft.Synchronization.MetadataStorage Namespace