EventSource::ConstructionException Property

.NET Framework (current version)
 

[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)

public:
property Exception^ ConstructionException {
	Exception^ get();
}

Property Value

Type: System::Exception^

The 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
Return to top
Show: