Share via


ISyncKnowledge::Serialize

Serializes the knowledge object data to a byte array.

HRESULT Serialize( 
  BOOL fSerializeReplicaKeyMap,
  BYTE *pbKnowledge,
  DWORD *pcbKnowledge);

Parameters

  • fSerializeReplicaKeyMap
    [in] TRUE to serialize the IReplicaKeyMap object that is contained in the knowledge; otherwise, FALSE.
  • pbKnowledge
    [in, out, unique, size_is(*pcbKnowledge)] The byte array that receives the serialized knowledge data.
  • pcbKnowledge
    [in, out] Specifies the number of bytes in pbKnowledge. Returns the number of bytes required to serialize the replica key map data when pbKnowledge is too small, or returns the number of bytes written.

Return Value

  • S_OK

  • E_POINTER

  • E_INVALIDARG

  • E_OUTOFMEMORY

  • HRESULT_FROM_WIN32(ERROR_MORE_DATA) when pbKnowledge is too small. In this case, the required number of bytes is returned in pcbKnowledge.

See Also

Reference

ISyncKnowledge Interface