Freigeben über


IErrorLookup::ReleaseErrors

Releases any dynamic error information associated with a dynamic error ID.

Syntax

HRESULT ReleaseErrors (
   const DWORD dwDynamicErrorID);

Parameters

  • dwDynamicErrorID
    [in] The ID of the dynamic error information to release.

Return Code

  • S_OK
    The method succeeded.

  • E_FAIL
    A provider-specific error occurred.

  • DB_E_BADDYNAMICERRORID
    dwDynamicErrorID was invalid.

Comments

Dynamic error information is created at run time. It is released when the OLE DB error object calls IErrorLookup::ReleaseErrors with the ID of the error information to release.

Although it is not required, it is more efficient for providers to use the same error ID for all records in a single error object. This allows IErrorLookup::ReleaseErrors to release all of this information in a single call.

For more information, see Error Lookup Services.