SourceFilter コンストラクタとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SourceFilter コンストラクタの意味・解説 

SourceFilter コンストラクタ

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

トレースの名前を指定して、SourceFilter クラス新しインスタンス初期化します。

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

解説解説
使用例使用例

2 つ異なソース フィルタ使用して、TraceData メソッド呼び出すコード例次に示します1 つフィルタ架空の名前で、もう 1 つフィルタ現在のトレース ソースの名前です。最初の例ではトレースコンソール書き込まれませんが、2 番目の例では書き込まれます。このコード例は、TraceSource クラストピック取り上げているコード例一部分です。

' Test the filter on the ConsoleTraceListener.
ts.Listeners("console").Filter = New
 SourceFilter("No match")
ts.TraceData(TraceEventType.Information, 5, "SourceFilter should
 reject this message for the console trace listener.")
ts.Listeners("console").Filter = New
 SourceFilter("TraceTest")
ts.TraceData(TraceEventType.Information, 6, "SourceFilter should
 let this message through on the console trace listener.")
// Test the filter on the ConsoleTraceListener.
ts.Listeners["console"].Filter = new SourceFilter("No
 match");
ts.TraceData(TraceEventType.Information, 5, 
    "SourceFilter should reject this message for
 the console trace listener.");
ts.Listeners["console"].Filter = new SourceFilter("TraceTest");
ts.TraceData(TraceEventType.Information, 6, 
    "SourceFilter should let this message through on the
 console trace listener.");
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

「SourceFilter コンストラクタ」の関連用語

SourceFilter コンストラクタのお隣キーワード
検索ランキング

   

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



SourceFilter コンストラクタのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS