แก้ไข

แชร์ผ่าน


EventSource.ConstructionException Property

Definition

Gets any exception that was thrown during the construction of the event source.

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

Property Value

The exception that was thrown during the construction of the event source, or null if no exception was thrown.

Remarks

EventSource constructors do not throw exceptions. Instead, any exception that is thrown is assigned to the ConstructionException property and logged by the Trace.WriteLine method.

Applies to