IMemoryConflictLog::Initialize
Initializes the object by using the specified conflict log access and writer objects.
HRESULT Initialize(
IConflictLogAccess * pConflictLogReader,
IConflictLogWriter * pConflictLogWriter);
Parameters
- pConflictLogReader
[in] Represents access to a conflict log that is implemented by the provider.
- pConflictLogWriter
[in] Represents a writer that can be used to write conflicts to a conflict log that is implemented by the provider.
Return Value
S_OK.
E_INVALIDARG when this object is specified as pConflictLogReader or pConflictLogWriter.
E_OUTOFMEMORY.
SYNC_E_INVALID_OPERATION when this method is called more than one time.
Remarks
Initialize must be called before any other methods in the IMemoryConflictLog object.
When a provider does not implement a conflict log, it must specify NULL for both Initialize parameters. When a provider implements its own conflict log but uses the in-memory conflict log during synchronization, it must supply access to its conflict log by specifying an IConflictLogAccess object in pConflictLogReader. The provider must also specify an IConflictLogWriter object pConflictLogWriter, and call Persist after synchronization has completed, to save any new conflicts to the persistent conflict log.