IMetaDataImport::GetMethodProps method (rometadataapi.h)

Gets the metadata associated with the method referenced by the specified MethodDef token.

Syntax

HRESULT GetMethodProps(
  [in]  mdMethodDef     tkMethodDef,
  [out] mdTypeDef       *ptkClass,
  [out] LPWSTR          szMethod,
  [in]  ULONG           cchMethod,
  [out] ULONG           *pchMethod,
  [out] DWORD           *pdwAttr,
  [out] PCCOR_SIGNATURE *ppvSigBlob,
  [out] ULONG           *pcbSigBlob,
  [out] ULONG           *pulCodeRVA,
  [out] DWORD           *pdwImplFlags
);

Parameters

[in] tkMethodDef

The MethodDef token that represents the method to return metadata for.

[out] ptkClass

A Pointer to a TypeDef token that represents the type that implements the method.

[out] szMethod

A Pointer to a buffer that has the method's name.

[in] cchMethod

The requested size of szMethod.

[out] pchMethod

A pointer to the size in wide characters of szMethod, or in the case of truncation, the actual number of wide characters in the method name.

[out] pdwAttr

A pointer to any flags associated with the method.

[out] ppvSigBlob

A pointer to the binary metadata signature of the method.

[out] pcbSigBlob

A pointer to the size in bytes of ppvSigBlob.

[out] pulCodeRVA

A pointer to the relative virtual address of the method.

[out] pdwImplFlags

A pointer to any implementation flags for the method.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Target Platform Windows
Header rometadataapi.h

See also

IMetaDataImport