Udostępnij za pośrednictwem


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
)
void OnItemMetadataDeserialized (
    ItemMetadata itemMetadata, 
    Dictionary<String,SyncFieldValue> extraFields
)
function OnItemMetadataDeserialized (
    itemMetadata : ItemMetadata, 
    extraFields : Dictionary<String,SyncFieldValue>
)

Parameters

  • itemMetadata
    The metadata of the item in the upgraded format.
  • extraFields
    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
IProviderUpgradeCallback Members
Microsoft.Synchronization.MetadataStorage Namespace