ILanguageExceptionErrorInfo2::GetPropagationContextHead method (restrictederrorinfo.h)

Retrieves the propagation context head.

Syntax

HRESULT GetPropagationContextHead(
  [out] ILanguageExceptionErrorInfo2 **propagatedLanguageExceptionErrorInfoHead
);

Parameters

[out] propagatedLanguageExceptionErrorInfoHead

On success, returns an ILanguageExceptionErrorInfo2 object that represents the head of the propagation context.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

You can use GetPropagationContextHead to retrieve the linked list of IRestrictedErrorInfo objects that contains additional error information on the exception in question. You can then use GetPreviousLanguageExceptionErrorInfo to move through that linked list, and examine each error separately.

The operating system also uses this method to retrieve the stored exceptions associated with the error.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1703 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header restrictederrorinfo.h

See also

ILanguageExceptionErrorInfo2