EventSource.ConstructionException Egenskap

Definition

Hämtar alla undantag som utlöstes under konstruktionen av händelsekällan.

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

Egenskapsvärde

Undantaget som utlöstes under konstruktionen av händelsekällan, eller null om inget undantag utlöstes.

Kommentarer

EventSource konstruktorer utlöser inte undantag. I stället tilldelas alla undantag som genereras till ConstructionException egenskapen och loggas av Trace.WriteLine metoden.

Gäller för