IMetadataSchemaCallback::AddItemMetadataSchema

Adds an ITEM_METADATA_SCHEMA object that represents the metadata schema for an item. This includes how to identify an item and its version information, and how change units are defined.

Syntax

HRESULT AddItemMetadataSchema(
  const ITEM_METADATA_SCHEMA *pItemMetadataSchema);

Parameters

  • pItemMetadataSchema
    [in] An ITEM_METADATA_SCHEMA object that represents the metadata schema for an item.

Return Value

  • S_OK

  • SYNC_E_PFX_METADATA_STORE_VERSION2_REQUIRED when the provider requires a metadata store component of version 2 or later

  • SYNC_E_PFX_INVALID_OPERATION when the simple provider already has a schema defined or the simple provider requires that this method be called only in ISimpleSyncProvider::GetMetadataSchema

See Also

Reference

IMetadataSchemaCallback Interface