Share via


IDebugCustomAttributeQuery2

Determines the existence of a custom attribute for this field and, if it exists, returns the attribute information.

IDebugCustomAttributeQuery2 : IDebugCustomAttributeQuery

Notes for Implementers

A symbol provider implements this interface on the same object that implements IDebugField in order to support custom attributes.

Notes for Callers

Use QueryInterface to obtain this interface from the IDebugField interface.

Methods in Vtable Order

The following table shows the methods of the IDebugCustomAttributeQuery interface.

Method

Description

IDebugCustomAttributeQuery2::IsCustomAttributeDefined

Determines whether a custom attribute exists by name.

IDebugCustomAttributeQuery2::GetCustomAttributeByName

Gets the attribute information for the given custom attribute.

In addition to the IDebugCustomAttributeQuery methods, IDebugCustomAttributeQuery2 implements the following method:

Method

Description

IDebugCustomAttributeQuery2::EnumCustomAttributes

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

Remarks

The IEnumDebugCustomAttributes method can return an enumerator for all custom attributes defined for this field.

Requirements

Header: sh.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See Also

Concepts

Symbol Provider Interfaces

Reference

IDebugField

IEnumDebugCustomAttributes