IDebugCustomAttribute

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

This interface represents a custom attribute, and it can provide the name, parent, and class type of the attribute.

Syntax

IDebugCustomAttribute : IUnknown

Notes for Implementers

A symbol provider implements this interface in order to support custom attributes associated with a symbol. It is typically implemented on its own object.

Notes for Callers

A call to Next returns this interface. A call to the EnumCustomAttributes method returns the IEnumDebugCustomAttributes interface.

Methods in Vtable Order

The following table shows the methods of IDebugCustomAttribute.

Method Description
GetParentField Gets the field to which the current attribute is attached.
GetAttributeTypeField Gets the custom attribute class type.
GetName Gets the name of the custom attribute.
GetAttributeBytes Gets the attribute information as a blob of bytes.

Remarks

A custom attribute is a structure for C# that supplies custom metadata associated with a particular class or method.

Requirements

Header: sh.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also