Share via


ISyncSessionState2::SetProviderWithError

Indicates which provider caused synchronization to fail.

HRESULT SetProviderWithError(
  BOOL fSelf);

Parameters

  • fSelf
    [in] TRUE when the provider that calls this method is the provider that caused the error. Otherwise, FALSE.

Return Value

  • S_OK

  • SYNC_E_INVALID_OPERATION when a synchronization session does not exist.

Remarks

The destination provider indicates which provider caused synchronization to fail during processing of the IKnowledgeSyncProvider::ProcessChangeBatch method by using ISyncSessionState2::SetProviderWithError. ISyncSessionState2::SetProviderWithError is used by an application to obtain the ISyncProvider interface of the provider that caused the failure. The application can then query for other interfaces that are implemented by the provider, and call methods to handle the error.

See Also

Reference

ISyncSessionState2 Interface