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::EnumCustomAttributes method
Enumerates custom attribute-definition tokens associated with the specified type or member.
Syntax
HRESULT EnumCustomAttributes( [in, out] HCORENUM *phEnum, [in] mdToken tk, [in] mdToken tkType, [out, size_is(cMax), length_is(*pcCustomAttributes)] mdCustomAttribute rgCustomAttributes[], [in] ULONG cMax, [out] ULONG *pcCustomAttributes );
Parameters
- phEnum [in, out]
-
A pointer to the returned enumerator.
- tk [in]
-
A token for the scope of the enumeration, or zero for all custom attributes.
- tkType [in]
-
A token for the type of the attributes to be enumerated, or zero for all types.
- rgCustomAttributes [out]
-
An array of custom attribute tokens.
- cMax [in]
-
The maximum size of the rgCustomAttributes array.
- pcCustomAttributes [out]
-
The actual number of token values returned in rgCustomAttributes.
Return value
| HRESULT | Description |
|---|---|
| S_OK | EnumCustomAttributes returned successfully. |
| S_FALSE | There are no custom attributes to enumerate. In this case, pcCustomAttributes is 0 (zero). |
Requirements
|
IDL |
|
|---|
See also
Show: