Partager via


ICorDebugEval2 Interface

Extends ICorDebugEval to provide support for generic types.

interface ICorDebugEval2 : IUnknown {
        
    HRESULT CallParameterizedFunction (
        [in] ICorDebugFunction     *pFunction,
        [in] ULONG32               nTypeArgs,
        [in, size_is(nTypeArgs)] ICorDebugType *ppTypeArgs[],
        [in] ULONG32               nArgs,
        [in, size_is(nArgs)] ICorDebugValue *ppArgs[]
    );
        
    HRESULT CreateValueForType (
        [in] ICorDebugType         *pType,
        [out] ICorDebugValue       **ppValue
    );
        
    HRESULT NewParameterizedArray(
        [in] ICorDebugType         *pElementType,
        [in] ULONG32               rank,
        [in, size_is(rank)] ULONG32 dims[],
        [in, size_is(rank)] ULONG32 lowBounds[]
    );
        
    HRESULT NewParameterizedObject (
        [in] ICorDebugFunction     *pConstructor,
        [in] ULONG32               nTypeArgs,
        [in, size_is(nTypeArgs)] ICorDebugType *ppTypeArgs[],
        [in] ULONG32               nArgs,
        [in, size_is(nArgs)] ICorDebugValue *ppArgs[]
    );
        
    HRESULT NewParameterizedObjectNoConstructor (
        [in] ICorDebugClass        *pClass,
        [in] ULONG32               nTypeArgs,
        [in, size_is(nTypeArgs)] ICorDebugType *ppTypeArgs[]
    );
        
    HRESULT NewStringWithLength (
        [in] LPCWSTR               string,
        [in] UINT                  uiLength
    );
        
    HRESULT RudeAbort (void);
        
};

Methods

Method

Description

ICorDebugEval2::CallParameterizedFunction Method

Sets up a call to the specified ICorDebugFunction, which can be nested inside a type whose constructor takes type parameters, or can itself take type parameters.

ICorDebugEval2::CreateValueForType Method

Gets a pointer to a new ICorDebugValue of the specified type, with an initial value of null or zero.

ICorDebugEval2::NewParameterizedArray Method

Allocates a new array of the specified element type and dimensions.

ICorDebugEval2::NewParameterizedObject Method

Instantiates a new parameterized type object and calls the object's constructor method.

ICorDebugEval2::NewParameterizedObjectNoConstructor Method

Instantiates a new parameterized type object of the specified class without attempting to call a constructor method

ICorDebugEval2::NewStringWithLength Method

Creates a new string of the specified length with the specified contents.

ICorDebugEval2::RudeAbort Method

Aborts the computation that this ICorDebugEval2 is currently performing.

Requirements

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

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

See Also

Concepts

Debugging Interfaces