Export (0) Print
Expand All

EventSource.ConstructionException Property

.NET Framework 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
Assembly:  mscorlib (in mscorlib.dll)

member ConstructionException : Exception with get

Property Value

Type: System.Exception
The exception that was thrown during the construction of the event source, or a null reference (Nothing in Visual Basic) 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.5.2, 4.5.1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Windows Phone 8.1

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft