ResultSnippet::AddWarning method

Creates an ErrorWarning object for use by the ResultSnippet object.

Syntax

virtual HRESULT AddWarning(
  [in]            INT          hresult,
  [in]            LPCWSTR      message,
  [out, optional] ErrorWarning **warning
) = 0;

Parameters

hresult [in]

The HRESULT value associated with the new warning.

message [in]

The message text.

warning [out, optional]

The ErrorWarning object that this method generates for the new warning.

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
AxeRuntime.h
DLL
AxeCore.dll

See also

ResultSnippet