Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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] mdCustomAttribute [] rgCustomAttributes,
[in] ULONG cMax,
[out] ULONG *pcCustomAttributes
);
Parameters
[in, out] phEnum
A pointer to the returned enumerator.
[in] tk
A token for the scope of the enumeration, or zero for all custom attributes.
[in] tkType
A token for the type of the attributes to be enumerated, or zero for all types.
[out] rgCustomAttributes
An array of custom attribute tokens.
[in] cMax
The maximum size of the rgCustomAttributes array.
[out] pcCustomAttributes
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
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | rometadataapi.h |