Debug.Listeners プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Debug.Listeners プロパティの意味・解説 

Debug.Listeners プロパティ

デバッグ出力監視するリスナコレクション取得します

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

Public Shared ReadOnly Property
 Listeners As TraceListenerCollection
Dim value As TraceListenerCollection

value = Debug.Listeners
public static TraceListenerCollection Listeners
 { get; }
public:
static property TraceListenerCollection^ Listeners {
    TraceListenerCollection^ get ();
}
/** @property */
public static TraceListenerCollection get_Listeners
 ()
public static function get
 Listeners () : TraceListenerCollection

プロパティ
デバッグ出力監視する TraceListener 型のコレクションを表す TraceListenerCollection。

解説解説
使用例使用例

コンソール画面出力する TextWriterTraceListener作成する例を次に示しますコード新しリスナListeners追加します

' Create a listener that outputs to the console screen, and 
' add it to the debug listeners. 
Dim myWriter As New TextWriterTraceListener(System.Console.Out)
Debug.Listeners.Add(myWriter)
/* Create a listener that outputs to the console screen, and 
  * add it to the debug listeners. */
 TextWriterTraceListener myWriter = new 
    TextWriterTraceListener(System.Console.Out);
 Debug.Listeners.Add(myWriter);

/* Create a listener that outputs to the console screen, and 
  * add it to the debug listeners. */
TextWriterTraceListener^ myWriter = gcnew TextWriterTraceListener( System::Console::Out
 );
Debug::Listeners->Add( myWriter );

.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Debug クラス
Debug メンバ
System.Diagnostics 名前空間
Debug クラス
Trace
BooleanSwitch クラス
TraceSwitch
TraceListener
DefaultTraceListener
ConsoleTraceListener クラス
ConditionalAttribute クラス


このページでは「.NET Framework クラス ライブラリ リファレンス」からDebug.Listeners プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からDebug.Listeners プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からDebug.Listeners プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

「Debug.Listeners プロパティ」の関連用語

Debug.Listeners プロパティのお隣キーワード
検索ランキング

   

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



Debug.Listeners プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS