共用方式為


ISymUnmanagedScope2::GetConstants 方法

取得在此範圍內定義的區域常數。

語法

HRESULT GetConstants(  
     [in]  ULONG32  cConstants,  
     [out] ULONG32  *pcConstants,  
     [out, size_is(cConstants),  
         length_is(*pcConstants)] ISymUnmanagedConstant*
             constants[]);  

參數

cConstants
[in]參數指向的緩衝區 pcConstants 長度。

pcConstants
[out]的指標 ULONG32 ,接收包含常數所需的緩衝區大小,以字元為單位。

constants
[out]儲存常數的緩衝區。

傳回值

如果方法成功,S_OK;否則,E_FAIL或其他錯誤碼。

規格需求

頭: CorSym.idl、CorSym.h

另請參閱