实例化指定类的新参数化类型对象,而不尝试调用构造函数方法。
HRESULT NewParameterizedObjectNoConstructor (
[in] ICorDebugClass *pClass,
[in] ULONG32 nTypeArgs,
[in, size_is(nTypeArgs)] ICorDebugType *ppTypeArgs[]
);
参数
pClass
[in] 一个指向 ICorDebugClass 对象的指针,该对象表示要实例化的对象的类。nTypeArgs
[in] 传递的类型参数数目。ppTypeArgs
[in] 一个指针数组,其中每个指针都指向一个 ICorDebugType 对象,该对象表示正在实例化的对象的类型参数。
备注
如果传递的类型参数的数目或类型错误,NewParameterizedObjectNoConstructor 方法将失败。
要求
**平台:**请参见 .NET Framework 系统要求。
头文件: CorDebug.idl、CorDebug.h
**库:**CorGuids.lib
**.NET Framework 版本:**4、3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0