ICorProfilerInfo::GetTokenAndMetadataFromFunction Method

Gets the metadata token and a metadata interface instance that can be used against the token for the specified function.

Syntax

HRESULT GetTokenAndMetaDataFromFunction(  
    [in]  FunctionID functionId,  
    [in]  REFIID     riid,  
    [out] IUnknown   **ppImport,  
    [out] mdToken    *pToken);  

Parameters

functionId
[in] The ID of the function for which to get the metadata token and metadata interface.

riid
[in] The reference ID of the metadata interface to get the instance of.

ppImport
[out] A pointer to the address of the metadata interface instance that can be used against the token for the specified function.

pToken
[out] A pointer to the metadata token for the specified function.

Requirements

Platforms: See System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: Available since 2.0

See also