IMetaDataImport::GetMethodProps method (rometadataapi.h)

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

Syntax

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

Parameters

tkMethodDef

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

ptkClass

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

szMethod

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

cchMethod

The requested size of szMethod.

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.

pdwAttr

A pointer to any flags associated with the method.

ppvSigBlob

A pointer to the binary metadata signature of the method.

pcbSigBlob

A pointer to the size in bytes of ppvSigBlob.

pulCodeRVA

A pointer to the relative virtual address of the method.

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

   
Target Platform Windows
Header rometadataapi.h

See also

IMetaDataImport