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: See .NET Framework System Requirements.

Header: Cor.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

See Also

Reference

IMetaDataImport Interface

IMetaDataImport2 Interface