IErrorLookup::ReleaseErrors

OLE DB Programmer's Reference

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

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" in Chapter 16: Errors.

1998-2001 Microsoft Corporation. All rights reserved.



Microsoft Ole Db 2.0 Programmer's Reference and Data Access SDK
Microsoft OLE DB 2.0 Programmers Reference and Data Access SDK (Microsoft Professional Editions)
ISBN: 0735605904
EAN: 2147483647
Year: 1998
Pages: 1083

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net