Freigeben über


ICorProfilerInfo::GetTokenAndMetadataFromFunction Method

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

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

Parameters

Parameter Description

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: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorProf.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

See Also

Reference

ICorProfilerInfo Interface