Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMetaDataImport::GetMethodProps method

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

Syntax


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

Parameters

tkMethodDef [in]

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

ptkClass [out]

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

szMethod [out]

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

cchMethod [in]

The requested size of szMethod.

pchMethod [out]

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 [out]

A pointer to any flags associated with the method.

ppvSigBlob [out]

A pointer to the binary metadata signature of the method.

pcbSigBlob [out]

A pointer to the size in bytes of ppvSigBlob.

pulCodeRVA [out]

A pointer to the relative virtual address of the method.

pdwImplFlags [out]

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

IDL

Rometadataapi.idl

See also

IMetaDataImport

 

 

Show: