Handles errors for asynchronous batch work.
Assembly: System.EnterpriseServices (in System.EnterpriseServices.dll)
This method should be implemented to gracefully handle errors that occur when batch work is running asynchronously. Because the process terminates (failfast) on any unrecoverable error, without this method there is no way of knowing when errors occur in asynchronous batch work. The process also terminates when this method returns an error as its return value. The batch work itself is implemented in OnCall, and it is run asynchronously by calling AsynchronousCall.
This method supports the standard return values E_FAIL, E_INVALIDARG, and E_OUTOFMEMORY, as well as S_OK, which indicates the method call returned successfully.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.