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.
IMetaDataImport::EnumTypeDefs method
Enumerates TypeDef tokens representing all types within the current scope.
Syntax
HRESULT EnumTypeDefs( [in, out] HCORENUM *phEnum, [out, size_is(cMax), length_is(*pcTypeDefs)] mdTypeDef rgTypeDefs[], [in] ULONG cMax, [out, retval] ULONG *pcTypeDefs );
Parameters
- phEnum [in, out]
-
A pointer to the new enumerator. This must be NULL for the first call of this method.
- rgTypeDefs [out]
-
The array used to store the TypeDef tokens.
- cMax [in]
-
The maximum size of the rgTypeDefs array.
- pcTypeDefs [out, retval]
-
The number of TypeDef tokens returned in rgTypeDefs.
Return value
| HRESULT | Description |
|---|---|
| S_OK | EnumTypeDefs returned successfully. |
| S_FALSE | There are no tokens to enumerate. In this case, pcTypeDefs is 0 (zero). |
Remarks
The TypeDef token represents a type such as a class or an interface, as well as any type added via an extensibility mechanism.
Requirements
|
IDL |
|
|---|
See also
Show: