SyncMetadataStoreSerializer.SerializeReplicaMetadata Method
When overridden in a derived class, serializes, for the specified replica, the contents of a metadata storage service store to a destination file.
Namespace: Microsoft.Synchronization.MetadataStorage
Assembly: Microsoft.Synchronization.MetadataStorage (in microsoft.synchronization.metadatastorage.dll)
Syntax
'Declaration
Public MustOverride Sub SerializeReplicaMetadata ( _
idFormats As SyncIdFormatGroup, _
replicaId As SyncId, _
serializedFilePath As String, _
compatibilityLevel As CompatibilityLevel _
)
'Usage
Dim instance As SyncMetadataStoreSerializer
Dim idFormats As SyncIdFormatGroup
Dim replicaId As SyncId
Dim serializedFilePath As String
Dim compatibilityLevel As CompatibilityLevel
instance.SerializeReplicaMetadata(idFormats, replicaId, serializedFilePath, compatibilityLevel)
public abstract void SerializeReplicaMetadata (
SyncIdFormatGroup idFormats,
SyncId replicaId,
string serializedFilePath,
CompatibilityLevel compatibilityLevel
)
public:
virtual void SerializeReplicaMetadata (
SyncIdFormatGroup^ idFormats,
SyncId^ replicaId,
String^ serializedFilePath,
CompatibilityLevel compatibilityLevel
) abstract
public abstract void SerializeReplicaMetadata (
SyncIdFormatGroup idFormats,
SyncId replicaId,
String serializedFilePath,
CompatibilityLevel compatibilityLevel
)
public abstract function SerializeReplicaMetadata (
idFormats : SyncIdFormatGroup,
replicaId : SyncId,
serializedFilePath : String,
compatibilityLevel : CompatibilityLevel
)
Parameters
- idFormats
The ID format schema of the provider.
- replicaId
The ID of the replica for which metadata should be serialized.
- serializedFilePath
The destination file to which metadata is serialized.
- compatibilityLevel
A CompatibilityLevel value that specifies for which version of Sync Framework the serialized metadata is valid. For example, if the native knowledge serialization format is Sync Framework 2.0, but the value provided for this parameter is Sync Framework 1.0, knowledge values are serialized in the 1.0 format. If knowledge values use any 2.0 features that cannot be serialized in the 1.0 format, serialization throws an InvalidSerializationVersionException exception.
See Also
Reference
SyncMetadataStoreSerializer Class
SyncMetadataStoreSerializer Members
Microsoft.Synchronization.MetadataStorage Namespace