EventSource.ConstructionException Property
.NET Framework (current version)
![]() |
---|
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience. |
[Supported in the .NET Framework 4.5.1 and later versions]
Gets any exception that was thrown during the construction of the event source.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System.ExceptionThe exception that was thrown during the construction of the event source, or null 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.
Universal Windows Platform
Available since 8.1
.NET Framework
Available since 4.5.1
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Available since 8.1
.NET Framework
Available since 4.5.1
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: