Muokkaa

Jaa


ICorDebugModule2::SetJMCStatus Method

Sets the Just My Code (JMC) status of all methods of all the classes in this ICorDebugModule2 to the specified value, except those in the pTokens array, which it sets to the opposite value.

Syntax

HRESULT SetJMCStatus (
    [in] BOOL                        bIsJustMyCode,
    [in] ULONG32                     cTokens,
    [in, size_is(cTokens)] mdToken   pTokens[]
);

Parameters

bIsJustMycode [in] Set to true if the code is to be debugged; otherwise, set to false.

cTokens [in] The size of the pTokens array.

pTokens [in] An array of mdToken values, each of which refers to a method that will have its JMC status set to !bIsJustMycode.

Remarks

The JMC status of each method that is specified in the pTokens array is set to the opposite of the bIsJustMycode value. The status of all other methods in this module is set to the bIsJustMycode value.

The SetJMCStatus method erases all previous JMC settings in this module.

The SetJMCStatus method returns an S_OK HRESULT if all functions were set successfully. It returns a CORDBG_E_FUNCTION_NOT_DEBUGGABLE HRESULT if some functions that are marked true are not debuggable.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 2.0