DebuggerBrowsableAttribute クラス
アセンブリ: mscorlib (mscorlib.dll 内)

<ComVisibleAttribute(True)> _ <AttributeUsageAttribute(AttributeTargets.Property Or AttributeTargets.Field, AllowMultiple:=False)> _ Public NotInheritable Class DebuggerBrowsableAttribute Inherits Attribute
[ComVisibleAttribute(true)] [AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple=false)] public sealed class DebuggerBrowsableAttribute : Attribute
[ComVisibleAttribute(true)] [AttributeUsageAttribute(AttributeTargets::Property|AttributeTargets::Field, AllowMultiple=false)] public ref class DebuggerBrowsableAttribute sealed : public Attribute

![]() |
---|
.NET Framework Version 2.0 では、Visual Basic で DebuggerBrowsableAttribute クラスがサポートされません。C# を使用すると、DebuggerTypeProxyAttribute、DebuggerDisplayAttribute、および DebuggerBrowsableAttribute を使用したカスタム データの拡張を追加できます。Visual Basic では DebuggerDisplayAttribute 属性がサポートされますが、DebuggerBrowsableAttribute 属性はサポートされません。 |
この属性は、単一インスタンスとしてプロパティおよびフィールドだけに適用できます。アセンブリには適用できません。
この属性のコンストラクタは、DebuggerBrowsableState 列挙体の値の 1 つを使用します。その値は次の状態のいずれかを指定します。
-
Never は、メンバがデータ ウィンドウに表示されないことを示します。たとえば、フィールドの DebuggerBrowsableAttribute にこの値を使用すると、そのフィールドは階層から削除され、型インスタンスの正符号 (+) をクリックして外側の型を展開しても表示されません。
-
RootHidden は、メンバ自体は表示されず、配列またはコレクションの場合は、メンバを構成するオブジェクトが表示されることを示します。
この属性と、DebuggerDisplayAttribute 属性、および DebuggerTypeProxyAttribute 属性の使用例については、DebuggerDisplayAttribute クラスのトピックで取り上げている例を参照してください。

System.Attribute
System.Diagnostics.DebuggerBrowsableAttribute


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- DebuggerBrowsableAttribute クラスのページへのリンク