IDebugCustomAttribute

此接口表示自定义特性,因此,它可以提供属性的名称、父节点和类类型。

IDebugCustomAttribute : IUnknown

实现者说明

符号提供程序实现此接口以便支持自定义特性与符号。 它是您通常实现的对象。

调用方的说明

IEnumDebugCustomAttributes:: 接下来 的调用返回此接口。 为 IDebugCustomAttributeQuery2:: EnumCustomAttributes 方法的调用返回 IEnumDebugCustomAttributes 接口。

方法按 Vtable 顺序

下表显示 IDebugCustomAttribute方法。

方法

说明

IDebugCustomAttribute:: GetParentField

获取当前属性附加字段。

IDebugCustomAttribute:: GetAttributeTypeField

获取自定义特性类类型。

IDebugCustomAttribute:: GetName

获取自定义属性的名称。

IDebugCustomAttribute:: GetAttributeBytes

获取属性信息作为字节 blob。

备注

自定义特性是提供自定义元数据与特定的类或方法 C# 的结构。

要求

标题:sh.h

命名空间:Microsoft.VisualStudio.Debugger.Interop

程序集:Microsoft.VisualStudio.Debugger.Interop.dll

请参见

参考

IDebugField

IDebugCustomAttributeQuery2

IEnumDebugCustomAttributes

概念

符号提供程序接口