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.

IMetaDataImport2::GetGenericParamProps method

Gets the metadata associated with the generic parameter represented by the specified token.

Syntax


HRESULT GetGenericParamProps(
  [in]                                         mdGenericParam gp,
  [out]                                        ULONG          *pulParamSeq,
  [out]                                        DWORD          *pdwParamFlags,
  [out]                                        mdToken        *ptOwner,
  [out]                                        DWORD          *reserved,
  [out, size_is(cchName), length_is(*pchName)] LPWSTR         wzname,
  [in]                                         ULONG          cchName,
  [out]                                        ULONG          *pchName
);

Parameters

gp [in]

The token that represents the generic parameter for which to return metadata.

pulParamSeq [out]

The ordinal position of the Type parameter in the parent constructor or method.

pdwParamFlags [out]

A value of the CorGenericParamAttr enumeration that describes the Type for the generic parameter.

ptOwner [out]

A TypeDef or MethodDef token that represents the owner of the parameter.

reserved [out]

Reserved for future extensibility.

wzname [out]

The name of the generic parameter.

cchName [in]

The size of the wzName buffer.

pchName [out]

The returned size of the name, in wide characters.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

IDL

Rometadataapi.idl

See also

IMetaDataImport2

 

 

Show: