ICorProfilerInfo::IsArrayClass 方法

判斷指定的類別是否為陣列類別。

語法

HRESULT IsArrayClass(  
    [in]  ClassID        classId,  
    [out] CorElementType *pBaseElemType,  
    [out] ClassID        *pBaseClassId,  
    [out] ULONG          *pcRank);  

參數

classId
[in] 要檢查之類別的識別碼。

pBaseElemType
[out] CorElementType 列舉值的指標,可指出陣列元素類型。

pBaseClassId
[out] 陣列元素的類別識別碼指標 (如果有的話)。

pcRank
[out] 整數的指標,表示陣列的順位 (也就是維度的數目)。

備註

如果指定的類別是陣列類別,IsArrayClass 方法會傳回 S_OK HRESULT 和任何非 null 輸出參數的值。 否則會傳回 S_FALSE。

規格需求

平台:請參閱系統需求

標頭: CorProf.idl、CorProf.h

程式庫:CorGuids.lib

.NET Framework版本:自 2.0 起可用

另請參閱