Share via


ItemMetadata Class

When overridden, represents the metadata that is associated with an item in the synchronization scope.

Namespace: Microsoft.Synchronization.MetadataStorage
Assembly: Microsoft.Synchronization.MetadataStorage (in microsoft.synchronization.metadatastorage.dll)

Syntax

'Declaration
Public MustInherit Class ItemMetadata
'Usage
Dim instance As ItemMetadata
public abstract class ItemMetadata
public ref class ItemMetadata abstract
public abstract class ItemMetadata
public abstract class ItemMetadata

Remarks

The metadata for an item contains its creation version, its current version, its global ID, and a value that indicates whether the item has been deleted from the item store. The metadata can also contain custom fields as defined by the FieldSchema class that is used to initialize the replica metadata.

Metadata Storage Service implements ItemMetadata. To obtain an instance of this implementation of ItemMetadata, first create a SqlMetadataStore object. Then, create or get a ReplicaMetadata object, and then call CreateItemMetadata or ReplicaMetadata.FindItemMetadataById.

The Metadata Storage Service implementation of this class does not save property changes to the disk until the object is passed to SaveItemMetadata.

Notes to Inheritors: When you inherit from ItemMetadata, you must override all its members.

Inheritance Hierarchy

System.Object
  Microsoft.Synchronization.MetadataStorage.ItemMetadata

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ItemMetadata Members
Microsoft.Synchronization.MetadataStorage Namespace

Other Resources

Accessing Replica Metadata