IMetaDataImport::GetParamProps method (rometadataapi.h)

Gets metadata values for the parameter referenced by the specified ParamDef token.

Syntax

HRESULT GetParamProps(
  [in]  mdParamDef    tkParamDef,
  [out] mdMethodDef   *ptkMethodDef,
  [out] ULONG         *pulSequence,
  [out] LPWSTR        szName,
  [in]  ULONG         cchName,
  [out] ULONG         *pchName,
  [out] DWORD         *pdwAttr,
  [out] DWORD         *pdwCPlusTypeFlag,
  [out] UVCP_CONSTANT *ppValue,
  [out] ULONG         *pcchValue
);

Parameters

[in] tkParamDef

A ParamDef token that represents the parameter to return metadata for.

[out] ptkMethodDef

A pointer to a MethodDef token representing the method that takes the parameter.

[out] pulSequence

The ordinal position of the parameter in the method argument list.

[out] szName

A buffer to hold the name of the parameter.

[in] cchName

The requested size in wide characters of szName.

[out] pchName

The returned size in wide characters of szName.

[out] pdwAttr

A pointer to any attribute flags associated with the parameter.

[out] pdwCPlusTypeFlag

A pointer to a flag specifying that the parameter is a ValueType.

[out] ppValue

A pointer to a constant string returned by the parameter.

[out] pcchValue

The size of ppValue in wide characters, or zero if ppValue does not hold a string.

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