Delen via


ISimpleSyncServices::SerializeReplicaMetadata

Serializes the contents of a metadata storage service store to a destination file in a canonical format.

HRESULT SerializeReplicaMetadata(
  IStream * pStream,
  SYNC_SERIALIZATION_VERSION serializationVersion);

Parameters

  • pStream
    [in] The destination stream to which metadata is serialized. This method writes to the stream in a forward-only fashion from the current stream location. The caller must position the stream to the start of a truncated file or another appropriate starting position.
  • serializationVersion
    [in] A SYNC_SERIALIZATION_VERSION Enumeration 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 fails with a SYNC_E_INCOMPATIBLE_SERIALIZATION_VERSION error code.

Return Value

  • S_OK

See Also

Reference

ISimpleSyncServices Interface