IRecoverableErrorCallback::SetRecoverableErrorForChange

Records a recoverable error that occurred when attempting to apply a change to an item.

Syntax

HRESULT SetRecoverableErrorForChange(
  HRESULT hrRecoverableError,
  IRecoverableErrorData *pRecoverableErrorData);

Parameters

  • hrRecoverableError
    [in] The HRESULT that represents the recoverable error.

  • pRecoverableErrorData
    [in, unique] The IRecoverableErrorData object that is associated with the reported recoverable error.

Return Value

  • S_OK

  • SYNC_E_PFX_INVALID_OPERATION when the item is no longer valid, or there were multiple recoverable errors set for this item.

  • E_INVALIDARG when the specified HRESULT is not a fail result.

See Also

Reference

IRecoverableErrorCallback Interface