Share via


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

  • 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 .NET Framework System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

See Also

Reference

ICorProfilerInfo Interface