Export (0) Print
Expand All

EventSource.ConstructionException Property

.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.

Namespace:  System.Diagnostics.Tracing
Assemblies:   mscorlib (in mscorlib.dll)
  System.Diagnostics.Tracing (in System.Diagnostics.Tracing.dll)

'Declaration
Public ReadOnly Property ConstructionException As Exception

Property Value

Type: System.Exception
The 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.

.NET Framework

Supported in: 4.6, 4.5.1

Supported in: Windows Phone 8.1
Show:
© 2015 Microsoft