ICorDebugSymbolProvider::GetMethodProps 方法

傳回方法屬性的相關資訊,例如方法的中繼資料語彙基元,以及其泛型參數的相關資訊 (假設該方法中有相對虛擬位址 (RVA))。

語法

HRESULT GetMethodProps(  
   [in]  ULONG32 codeRva,  
   [out] mdToken *pMethodToken,  
   [out] ULONG32 *pcGenericParams,  
   [in]  ULONG32 cbSignature,  
   [out] ULONG32 *pcbSignature,  
   [out, size_is(cbSignature), length_is(*pcbSignature)] BYTE signature[]  
);  

參數

codeRVA
[in] 方法中的相對虛擬位址,將會擷取其相關資訊。

pMethodToken
[out] 方法的中繼資料語彙基元指標。

pcGenericParams
[out] 與這個方法相關聯之泛型參數的數目指標。

cbSignature
[in] signature 陣列的大小。 請參閱<備註>一節。

pcbSignature
[out] 所傳回之 signature 陣列的大小指標。

signature
[out] 保留所有泛型參數之 TypeSpec 簽章的緩衝區。

備註

若要取得方法之 signature 陣列所需的大小,請將 cbSignature 引數設定為 0,並將 signature 設定為 null。 當這個方法傳回時,pcbSignature 會包含 signature 陣列所需的位元組數目。

注意

這個方法僅適用於 .NET Native。

規格需求

平台:請參閱系統需求

標頭:CorDebug.idl、CorDebug.h

程式庫:CorGuids.lib

.NET Framework版本:自 4.6 起提供,.NET Native

另請參閱