Condividi tramite


IDebugCustomAttribute

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

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 IEnumDebugCustomAttributes::Next returns this interface. A call to the IDebugCustomAttributeQuery2::EnumCustomAttributes method returns the IEnumDebugCustomAttributes interface.

Methods in Vtable Order

The following table shows the methods of IDebugCustomAttribute.

Method

Description

IDebugCustomAttribute::GetParentField

Gets the field to which the current attribute is attached.

IDebugCustomAttribute::GetAttributeTypeField

Gets the custom attribute class type.

IDebugCustomAttribute::GetName

Gets the name of the custom attribute.

IDebugCustomAttribute::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

Reference

IDebugField

IDebugCustomAttributeQuery2

IEnumDebugCustomAttributes

Concepts

Symbol Provider Interfaces