SqlSyncMetadataStoreSerializer Class

Serializes and deserializes metadata for a replica between a canonical metadata file format and version-specific metadata storage service store formats.

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

Syntax

'Declaration
Public Class SqlSyncMetadataStoreSerializer
    Inherits SyncMetadataStoreSerializer
'Usage
Dim instance As SqlSyncMetadataStoreSerializer
public class SqlSyncMetadataStoreSerializer : SyncMetadataStoreSerializer
public ref class SqlSyncMetadataStoreSerializer : public SyncMetadataStoreSerializer
public class SqlSyncMetadataStoreSerializer extends SyncMetadataStoreSerializer
public class SqlSyncMetadataStoreSerializer extends SyncMetadataStoreSerializer

Remarks

Serialization of the metadata file to a canonical format by using the SyncMetadataStoreSerializer methods can be used to interoperate among components of differing versions. For more information, see Accessing Metadata from Components with Different Versions.

Serialization of the metadata file to a canonical format by using the SyncMetadataStoreSerializer methods can be used to upgrade the metadata store when the provider version changes. For more information, see Upgrading the Metadata Store Version.

The SyncMetadataStoreSerializer class has the following behaviors regarding concurrent serialization and deserialization operations for a metadata store:

  • Concurrent operations for a single replica's metadata are not supported, regardless of whether operations are executed in different processes or on different threads in the same process.

  • Concurrent serialization and deserialization operations for a metadata store are supported only if each operation affects a different replica's metadata and each operation is performed over a different connection.

Serialization and deserialization operations are not supported while a replica is synchronizing.

Inheritance Hierarchy

System.Object
   Microsoft.Synchronization.MetadataStorage.SyncMetadataStoreSerializer
    Microsoft.Synchronization.MetadataStorage.SqlSyncMetadataStoreSerializer

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

SqlSyncMetadataStoreSerializer Members
Microsoft.Synchronization.MetadataStorage Namespace

Concepts

Accessing Metadata from Components with Different Versions
Upgrading the Metadata Store Version