.NET Framework 4.6 and 4.5
[Supported in the .NET Framework 4.5.1 and later versions]
Gets any exception that was thrown during the construction of the event source.
(in mscorlib.dll) System.Diagnostics.Tracing
Public ReadOnly Property ConstructionException As Exception
Type: System.ExceptionThe exception that was thrown during the construction of the event source, or Nothing if no exception was thrown.
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.
Supported in: 4.6, 4.5.1
Supported in: Windows Phone 8.1