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.
Creates an ErrorWarning error object for use by the ResultSnippet object.
Syntax
virtual HRESULT AddError(
[in] INT hresult,
[in] LPCWSTR message
) = 0;
Parameters
-
hresult [in]
-
The HRESULT value associated with the new error.
-
message [in]
-
The message text.
Return value
If the function succeeds, it returns S_OK. If it fails, it returns an error value.
Requirements
| Minimum supported client |
Windows 7 [desktop apps only] |
| Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
| Header |
|
| DLL |
|