EventSource.ConstructionException プロパティ

定義

イベント ソースの作成中にスローされた例外を取得します。

public:
 property Exception ^ ConstructionException { Exception ^ get(); };
public Exception ConstructionException { get; }
public Exception? ConstructionException { get; }
member this.ConstructionException : Exception
Public ReadOnly Property ConstructionException As Exception

プロパティ値

イベント ソースの作成中にスローされた例外、または例外がスローされなかった場合は null

注釈

EventSource コンストラクターは例外をスローしません。 代わりに、スローされた例外は プロパティに ConstructionException 割り当てられ、 メソッドによってログに Trace.WriteLine 記録されます。

適用対象