Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
The IErrorLog interface is an abstraction for an "error log" that is used to communicate detailed error information between a client and an object. The caller of the single interface member, AddError, simply "logs" an error where the error is an EXCEPINFO structure attached to a specific property. The implementor of the interface is responsible for handling the error in whatever way it desires.
IErrorLog is used in the protocol between a client that implements the IPropertyBag interface and an object that implements the IPersistPropertyBag interface.
IDL:
[ uuid(3127CA40-446E-11CE-8135-00AA004BB851) , object, pointer_default(unique) ] interface IErrorLog : IUnknown { HRESULT AddError([in] LPCOLESTR pszPropName, [in] LPEXCEPINFO pExcepInfo); };
IErrorLog Method
AddError Logs an error (an EXCEPINFO structure) in the error log for a named property.
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.