COR_ARRAY_LAYOUT 結構COR_ARRAY_LAYOUT Structure

提供記憶體中陣列物件配置的相關資訊。Provides information about the layout of an array object in memory.

語法Syntax

typedef struct COR_ARRAY_LAYOUT {  
    COR_TYPEID componentID;  
    CorElementType componentType;  
    ULONG32 firstElementOffset;  
    ULONG32 elementSize;  
    ULONG32 countOffset;
    ULONG32 rankSize;
    ULONG32 numRanks;
    ULONG32 rankOffset;
} COR_ARRAY_LAYOUT;  

成員Members

memberMember 描述Description
componentID 陣列所包含物件類型的識別碼。The identifier of the type of objects that the array contains.
componentType CorElementType 列舉值,指出元件是否為垃圾收集參考、實值類別或基本。A CorElementType enumeration value that indicates whether the component is a garbage collection reference, a value class, or a primitive.
firstElementOffset 陣列中第一個元素的位移。The offset to the first element in the array.
elementSize 每個元素的大小。The size of each element.
countOffset 陣列中元素數目的位移。The offset to the number of elements in the array.
rankSize 順位的大小(以位元組為單位)。The size of the rank, in bytes.
numRanks 陣列中的排名數目。The number of ranks in the array.
rankOffset 排名開始的位移。The offset at which the ranks start.

備註Remarks

rankSize欄位會指定多維度陣列中的順位大小。The rankSize field specifies the size of a rank in a multi-dimensional array. 這對一維陣列而言也是正確的。It is accurate for single-dimensional arrays as well.

numRanks針對一維陣列和 N 維度的多維陣列,的值為 1 NThe value of numRanks is 1 for a single-dimensional array and N for a multi-dimensional array of N dimensions.

規格需求Requirements

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

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

程式庫: CorGuids.libLibrary: CorGuids.lib

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

另請參閱See also