DebuggableAttribute 类

修改运行库实时 (JIT) 调试的代码生成。无法继承此类。

**命名空间:**System.Diagnostics
**程序集:**mscorlib(在 mscorlib.dll 中)

语法

声明
<AttributeUsageAttribute(AttributeTargets.Assembly Or AttributeTargets.Module, AllowMultiple:=False)> _
<ComVisibleAttribute(True)> _
Public NotInheritable Class DebuggableAttribute
    Inherits Attribute
用法
Dim instance As DebuggableAttribute
[AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Module, AllowMultiple=false)] 
[ComVisibleAttribute(true)] 
public sealed class DebuggableAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Assembly|AttributeTargets::Module, AllowMultiple=false)] 
[ComVisibleAttribute(true)] 
public ref class DebuggableAttribute sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Module, AllowMultiple=false) */ 
/** @attribute ComVisibleAttribute(true) */ 
public final class DebuggableAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Module, AllowMultiple=false) 
ComVisibleAttribute(true) 
public final class DebuggableAttribute extends Attribute

备注

DebuggableAttribute 控制运行库如何处理模块中的代码。运行库可能会跟踪有关所生成代码的附加信息,根据此属性包含的值,它可能会禁用某些优化。

有关使用属性的更多信息,请参见 利用属性扩展元数据

继承层次结构

System.Object
   System.Attribute
    System.Diagnostics.DebuggableAttribute

线程安全

此类型的任何公共静态(Visual Basic 中的 Shared)成员都是线程安全的,但不保证所有实例成员都是线程安全的。

平台

Windows 98、Windows 2000 SP4、Windows CE、Windows Millennium Edition、Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

.NET Compact Framework

受以下版本支持:2.0、1.0

请参见

参考

DebuggableAttribute 成员
System.Diagnostics 命名空间