ICorDebugEval2::NewParameterizedObject 方法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
在ICorDebugFunction 物件的指標,代表要具現化之物件的函式。[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
在指標的陣列,每個指標都會指向 ICorDebugType 物件,該物件代表要具現化之物件的型別引數。[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
在指標的陣列,每個指標都會指向代表傳遞給函式之引數值的 ICorDebugValue 物件。[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

物件的函式可能會採用 Type 參數。The object's constructor may take Type parameters.

規格需求Requirements

平台: 請參閱 系統需求Platforms: See System Requirements.

標頭: CorDebug.idl、CorDebug.hHeader: CorDebug.idl, CorDebug.h

程式庫: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 2.0 起可用Available since 2.0.NET Framework Versions: 自 2.0 起可用Available since 2.0