ICorDebugEval2::NewParameterizedObject Method

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

Syntax

HRESULT NewParameterizedObject (
    [in] ICorDebugFunction     *pConstructor,
    [in] ULONG32               nTypeArgs,
    [in, size_is(nTypeArgs)] ICorDebugType *ppTypeArgs[],
    [in] ULONG32               nArgs,
    [in, size_is(nArgs)] ICorDebugValue *ppArgs[]
);

Parameters

pConstructor [in] A pointer to an ICorDebugFunction object that represents the constructor of the object to be instantiated.

nTypeArgs [in] The number of type arguments passed.

ppTypeArgs [in] An array of pointers, each of which points to an ICorDebugType object that represents a type argument for the object that is being instantiated.

nArgs [in] The number of arguments passed to the constructor.

ppArgs [in] An array of pointers, each of which points to an ICorDebugValue object that represents an argument value that is passed to the constructor.

Remarks

The object's constructor may take Type parameters.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 2.0