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

適用於