Share via


IDebugCustomAttributeQuery2::EnumCustomAttributes

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Gets an enumerator for all custom attributes attached to this field.

Syntax

HRESULT EnumCustomAttributes( 
   IEnumDebugCustomAttributes** ppEnum
);
int EnumCustomAttributes(
   out IEnumDebugCustomAttributes ppEnum
);

Parameters

ppEnum
[out] Returns an IEnumDebugCustomAttributes object representing the list of custom attributes; otherwise, returns a null value if there are no custom attributes.

Return Value

If successful, returns S_OK or S_FALSE if there are no custom attributes on this field. Otherwise, returns an error code;

Remarks

A field can have multiple custom attributes.

See also