共用方式為


ICorDebugArrayValue::GetDimensions 方法

取得此陣列每個維度中的元素數。

語法

HRESULT GetDimensions (
    [in] ULONG32         cdim,
    [out, size_is(cdim), length_is(cdim)]
        ULONG32          dims[]
);

參數

cdim [在]此 ICorDebugArrayValue 物件的維度數目。

此值也是陣列的 dims 大小,因為它的大小等於物件的 ICorDebugArrayValue 維度數。

dims [出]整數陣列,每個整數指定此 ICorDebugArrayValue 物件中維度中的元素數。

需求

平台: 請參閱 .NET 支援的作業系統

標題: CorDebug.idl、CorDebug.h

圖書館: CorGuids.lib

.NET 版本: 自 .NET Framework 1.0 起提供