DebuggerBrowsableAttributeとは? わかりやすく解説

DebuggerBrowsableAttribute クラス

メモ : このクラスは、.NET Framework version 2.0新しく追加されたものです。

デバッガ変数ウィンドウ内でメンバ表示するかどうかと、表示方法決定します。このクラス継承できません。

名前空間: System.Diagnostics
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

<ComVisibleAttribute(True)> _
<AttributeUsageAttribute(AttributeTargets.Property Or AttributeTargets.Field,
 AllowMultiple:=False)> _
Public NotInheritable Class
 DebuggerBrowsableAttribute
    Inherits Attribute
Dim instance As DebuggerBrowsableAttribute
[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
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field,
 AllowMultiple=false) */ 
public final class DebuggerBrowsableAttribute
 extends Attribute
ComVisibleAttribute(true) 
AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple=false)
 
public final class DebuggerBrowsableAttribute
 extends Attribute
解説解説
メモメモ

.NET Framework Version 2.0 では、Visual BasicDebuggerBrowsableAttribute クラスサポートされません。C#使用すると、DebuggerTypeProxyAttribute、DebuggerDisplayAttribute、および DebuggerBrowsableAttribute使用したカスタム データ拡張追加できますVisual Basic では DebuggerDisplayAttribute 属性サポートされますが、DebuggerBrowsableAttribute 属性サポートされません。

この属性は、単一インスタンスとしてプロパティおよびフィールドだけに適用できますアセンブリには適用できません。

この属性コンストラクタは、DebuggerBrowsableState 列挙体の値の 1 つ使用します。その値は次の状態のいずれか指定します

この属性と、DebuggerDisplayAttribute 属性、および DebuggerTypeProxyAttribute 属性使用例については、DebuggerDisplayAttribute クラストピック取り上げている例を参照してください

継承階層継承階層
System.Object
   System.Attribute
    System.Diagnostics.DebuggerBrowsableAttribute
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

DebuggerBrowsableAttribute コンストラクタ

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

DebuggerBrowsableAttribute クラス新しインスタンス初期化します。

名前空間: System.Diagnostics
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Sub New ( _
    state As DebuggerBrowsableState _
)
Dim state As DebuggerBrowsableState

Dim instance As New DebuggerBrowsableAttribute(state)
public DebuggerBrowsableAttribute (
    DebuggerBrowsableState state
)
public:
DebuggerBrowsableAttribute (
    DebuggerBrowsableState state
)
public DebuggerBrowsableAttribute (
    DebuggerBrowsableState state
)
public function DebuggerBrowsableAttribute
 (
    state : DebuggerBrowsableState
)

パラメータ

state

メンバ表示する方法指定する DebuggerBrowsableState 値の 1 つ

例外例外
例外種類条件

ArgumentOutOfRangeException

stateDebuggerBrowsableState 値ではありません。

解説解説

この属性適用できるのはプロパティおよびフィールドだけです。

使用例使用例

DebuggerBrowsableAttribute 属性使用しKeys プロパティルート (プロパティ名) ではなく Keys取得する配列要素表示するようにデバッガ命令するコード例次に示します。このコード例は、DebuggerDisplayAttribute クラストピック取り上げているコード例一部分です。

[DebuggerBrowsableAttribute(DebuggerBrowsableState.RootHidden)]
public KeyValuePairs[] Keys
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DebuggerBrowsableAttribute クラス
DebuggerBrowsableAttribute メンバ
System.Diagnostics 名前空間

DebuggerBrowsableAttribute プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ State 属性表示状態を取得します
パブリック プロパティ TypeId  派生クラス実装されている場合は、この Attribute一意識別子取得します。 ( Attribute から継承されます。)
参照参照

関連項目

DebuggerBrowsableAttribute クラス
System.Diagnostics 名前空間
DebuggerBrowsableState

その他の技術情報

デバッガ表示属性によるデバッグ機能拡張

DebuggerBrowsableAttribute メソッド


パブリック メソッドパブリック メソッド

  名前 説明
パブリック メソッド Equals  オーバーロードされます。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttribute  オーバーロードされますアセンブリモジュール、型のメンバ、またはメソッド パラメータ適用され指定した型のカスタム属性取得します。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttributes  オーバーロードされますアセンブリモジュール、型のメンバ、またはメソッド パラメータ適用されカスタム属性配列取得します。 ( Attribute から継承されます。)
パブリック メソッド GetHashCode  このインスタンスハッシュ コード返します。 ( Attribute から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 ( Object から継承されます。)
パブリック メソッド IsDefaultAttribute  派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラス既定値かどうか示します。 ( Attribute から継承されます。)
パブリック メソッド IsDefined  オーバーロードされます指定した型のカスタム属性が、アセンブリモジュール、型のメンバ、またはメソッド パラメータ適用されているかどうか判断します。 ( Attribute から継承されます。)
パブリック メソッド Match  派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンス等しかどうかを示す値を返します。 ( Attribute から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 ( Object から継承されます。)
参照参照

関連項目

DebuggerBrowsableAttribute クラス
System.Diagnostics 名前空間
DebuggerBrowsableState

その他の技術情報

デバッガ表示属性によるデバッグ機能拡張

DebuggerBrowsableAttribute メンバ

デバッガ変数ウィンドウ内でメンバ表示するかどうかと、表示方法決定します。このクラス継承できません。

DebuggerBrowsableAttribute データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド DebuggerBrowsableAttribute DebuggerBrowsableAttribute クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ State 属性表示状態を取得します
パブリック プロパティ TypeId  派生クラス実装されている場合は、この Attribute一意識別子取得します。(Attribute から継承されます。)
パブリック メソッドパブリック メソッド
  名前 説明
パブリック メソッド Equals  オーバーロードされます。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttribute  オーバーロードされますアセンブリモジュール、型のメンバ、またはメソッド パラメータ適用され指定した型のカスタム属性取得します。 (Attribute から継承されます。)
パブリック メソッド GetCustomAttributes  オーバーロードされますアセンブリモジュール、型のメンバ、またはメソッド パラメータ適用されカスタム属性配列取得します。 (Attribute から継承されます。)
パブリック メソッド GetHashCode  このインスタンスハッシュ コード返します。 (Attribute から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 (Object から継承されます。)
パブリック メソッド IsDefaultAttribute  派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラス既定値かどうか示します。 (Attribute から継承されます。)
パブリック メソッド IsDefined  オーバーロードされます指定した型のカスタム属性が、アセンブリモジュール、型のメンバ、またはメソッド パラメータ適用されているかどうか判断します。 (Attribute から継承されます。)
パブリック メソッド Match  派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンス等しかどうかを示す値を返します。 (Attribute から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 (Object から継承されます。)
参照参照

関連項目

DebuggerBrowsableAttribute クラス
System.Diagnostics 名前空間
DebuggerBrowsableState

その他の技術情報

デバッガ表示属性によるデバッグ機能拡張



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「DebuggerBrowsableAttribute」の関連用語

DebuggerBrowsableAttributeのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DebuggerBrowsableAttributeのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS