Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method uses an EXCEPINFO structure to log an error in the error log for a named property.
HRESULT AddError(LPCOLESTRpszPropName,EXCEPINFO*pExcepInfo);
Parameters
- pszPropName
[in] Pointer to a string containing the name of the property involved with the error. This cannot be NULL. - pExcepInfo
[in] Pointer to the caller-initialized EXCEPINFO structure that describes the error to log. This cannot be NULL.
Return Values
The following table shows the return values.
Value | Description |
---|---|
S_OK | The error was logged successfully. |
E_FAIL | There was a problem logging the error. |
E_OUTOFMEMORY | There was not enough memory to log the error. |
E_POINTER | The pointer in pszPropName or pExcepInfo is not valid (such as NULL). The caller must supply both. |
Remarks
E_NOTIMPL is not a valid return code because this is the only method of the IErrorlog interface.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Oaidl.h, Oaidl.idl.
Link Library: Oleaut32.lib, Uuid.lib.
See Also
Send Feedback on this topic to the authors