ReplicaMetadata.FindItemMetadataById Method

When overridden in a derived class, gets item metadata for the item that has the specified global ID.

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

public abstract ItemMetadata FindItemMetadataById(
	SyncId globalId
)

Parameters

globalId
Type: Microsoft.Synchronization.SyncId
The global ID of the item.

Return Value

Type: Microsoft.Synchronization.MetadataStorage.ItemMetadata
The item metadata for the item that has the specified ID. A null when no item exists.

ExceptionCondition
ObjectDisposedException

The object has been disposed or was not initialized correctly.

ArgumentNullException

globalId is a null.

SyncIdFormatMismatchException

The format of globalId does not match the format that is specified by the ID format schema for the replica.

ItemMetadataNotFoundException

Item metadata was not found for the specified item.

The metadata for an item represents information about an item in the item store, such as its current version, its creation version, and any custom fields available for the item.

Show: