共用方式為


ICLRErrorReportingManager Interface

Provides methods that allow the host to configure custom stack dumps for error reporting.

interface ICLRErrorReportingManager : IUnknown {
    HRESULT BeginCustomDump (
        [in] ECustomDumpFlavor dwFlavor,
        [in] DWORD dwNumItems,
        [in, size_is(dwNumItems), length_is(dwNumItems)]
                      CustomDumpItem items[],
        DWORD dwReserved
    );
    HRESULT EndCustomDump ();
    HRESULT GetBucketParametersForCurrentException([out]
                       BucketParameters *pParams);
};

Methods

Method

Description

ICLRErrorReportingManager::BeginCustomDump Method

Specifies the configuration of custom stack dumps for error reporting.

ICLRErrorReportingManager::EndCustomDump Method

Clears the custom stack dump configuration that was set by an earlier call to BeginCustomDump.

ICLRErrorReportingManager::GetBucketParametersForCurrentException Method

Gets the Watson bucket for the current exception on the calling thread.

Remarks

The BeginCustomDump method sets custom stack dump configuration. The EndCustomDump method clears the custom stack dump configuration and frees any associated state. It should be called after the custom dump is complete.

Important noteImportant Note:

Failure to call EndCustomDump causes memory to leak.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: MSCorEE.idl

Library: Included as a resource in MSCorEE.dll

.NET Framework Version: 2.0

See Also

Concepts

ECustomDumpItemKind Enumeration

Hosting Interfaces