ICorDebugEval2
更新: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