ICorDebugEval2::NewParameterizedArray 方法ICorDebugEval2::NewParameterizedArray Method

配置指定元素類型和維度的新陣列。Allocates a new array of the specified element type and dimensions.

語法Syntax

HRESULT NewParameterizedArray(  
    [in] ICorDebugType          *pElementType,  
    [in] ULONG32                rank,  
    [in, size_is(rank)] ULONG32 dims[],  
    [in, size_is(rank)] ULONG32 lowBounds[]  
);  

參數Parameters

pElementType
在ICorDebugType 物件的指標,代表儲存在陣列中的元素類型。[in] A pointer to an ICorDebugType object that represents the type of element stored in the array.

rank
在陣列的維度數目。[in] The number of dimensions of the array. 在 .NET Framework 2.0 版中,此值必須是1。In the .NET Framework version 2.0, this value must be 1.

dims
在陣列每個維度的大小(以位元組為單位)。[in] The size, in bytes, of each dimension of the array.

lowBounds
[in] 選用。[in] Optional. 陣列的每個維度下限。The lower bound of each dimension of the array. 如果省略此值,則會針對每個維度採用零下限。If this value is omitted, a lower bound of zero is assumed for each dimension.

備註Remarks

陣列的元素可以是泛型型別的實例。The elements of the array may be instances of a generic type. 陣列一律會建立線上程目前執行所在的應用程式域中。The array is always created in the application domain in which the thread is currently running. 在 .NET Framework 2.0 中,的值 rank 必須是1。In the .NET Framework 2.0, the value of rank must be 1.

規格需求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