ICorDebugEval2::NewParameterizedObjectNoConstructor 方法

实例化指定类的新参数化类型对象,而无需尝试调用构造函数方法。

Syntax

HRESULT NewParameterizedObjectNoConstructor (
    [in] ICorDebugClass        *pClass,
    [in] ULONG32               nTypeArgs,
    [in, size_is(nTypeArgs)] ICorDebugType *ppTypeArgs[]
);

参数

pClass [in]指向 ICorDebugClass 对象的指针,该对象表示要实例化的对象的类。

nTypeArgs [in]传递的类型参数数。

ppTypeArgs [in]指针数组,每个指针指向一个 ICorDebugType 对象,该对象表示正在实例化的对象的类型参数。

注解

如果传递了错误的类型参数数或类型参数的类型错误类型,该方法 NewParameterizedObjectNoConstructor 将失败。

要求

平台: 请参阅 .NET 支持的作系统

页眉: CorDebug.idl、CorDebug.h

图书馆: CorGuids.lib

.NET 版本: 自 .NET Framework 2.0 起可用