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
Assemblies:   mscorlib (in mscorlib.dll)
  System.Diagnostics.Tracing (in System.Diagnostics.Tracing.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 nullptr 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

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