Share via


ErrorWarningCollection::AddItem method

Adds an ErrorWarning item to the collection.

Syntax

virtual HRESULT AddItem(
  [in]  IssueType    issueType,
  [in]  INT          hresult,
  [in]  LPCWSTR      message,
  [out] ErrorWarning **errorWarning
) = 0;

Parameters

issueType [in]

The type of the item being added.

hresult [in]

The HRESULT value associated with the item.

message [in]

The message text for the item.

errorWarning [out]

A double pointer that receives a pointer to the new item.

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

ErrorWarningCollection