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::EnumGenericParams method
Gets an enumerator for an array of generic parameter tokens associated with the specified TypeDef or MethodDef token.
Syntax
HRESULT EnumGenericParams( [in, out] HCORENUM *phEnum, [in] mdToken tk, [out, size_is(cMax), length_is(*pcGenericParams)] mdGenericParam rGenericParams[], [in] ULONG cMax, [out] ULONG *pcGenericParams );
Parameters
- phEnum [in, out]
-
A pointer to the enumerator.
- tk [in]
-
The TypeDef or MethodDef token whose generic parameters are to be enumerated.
- rGenericParams [out]
-
The array of generic parameters to enumerate.
- cMax [in]
-
The requested maximum number of tokens to place in rGenericParams.
- pcGenericParams [out]
-
The returned number of tokens placed in rGenericParams.
Return value
| HRESULT | Description |
|---|---|
| S_OK | EnumGenericParams returned successfully. |
| S_FALSE | phEnum has no member elements. In this case, pcGenericParams is set to 0 (zero). |
Requirements
|
IDL |
|
|---|
See also
Show: