更新:2007 年 11 月
扩展 ICorDebugEval 以对泛型类型提供支持。
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);
};
方法
方法 |
说明 |
---|---|
设置对指定 ICorDebugFunction 的调用,它可以嵌套在其构造函数采用类型参数的类型中,或本身就可以采用类型参数。 |
|
获取一个指针,该指针指向指定类型的新 ICorDebugValue(其初始值为 Null 或零)。 |
|
分配一个指定元素类型和维数的新数组。 |
|
实例化新参数化类型对象,并调用该对象的构造函数方法。 |
|
实例化指定类的新参数化类型对象,而不尝试调用构造函数方法。 |
|
创建具有指定长度和指定内容的新字符串。 |
|
中止此 ICorDebugEval2 当前正在执行的计算。 |
要求
**平台:**请参见 .NET Framework 系统要求。
**头文件:**CorDebug.idl
**库:**CorGuids.lib
**.NET Framework 版本:**3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0