Share via


IMetaDataImport::GetParamProps Method

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

HRESULT GetParamProps (
      [in]  mdParamDef      tk,
      [out] mdMethodDef     *pmd,
      [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

  • tk
    [in] A ParamDef token that represents the parameter to return metadata for.

  • pmd
    [out] A pointer to a MethodDef token representing the method that takes the parameter.

  • pulSequence
    [out] The ordinal position of the parameter in the method argument list.

  • szName
    [out] A buffer to hold the name of the parameter.

  • cchName
    [in] The requested size in wide characters of szName.

  • pchName
    [out] The returned size in wide characters of szName.

  • pdwAttr
    [out] A pointer to any attribute flags associated with the parameter.

  • pdwCPlusTypeFlag
    [out] A pointer to a flag specifying that the parameter is a ValueType.

  • ppValue
    [out] A pointer to a constant string returned by the parameter.

  • pcchValue
    [out] The size of ppValue in wide characters, or zero if ppValue does not hold a string.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: Cor.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Concepts

IMetaDataImport Interface

IMetaDataImport2 Interface