ConfigurationErrorsException.Message Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets an extended description of why this configuration exception was thrown.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

public override string Message { get; }

Property Value

Type: System.String

An extended description of why this ConfigurationErrorsException exception was thrown.

The following code example shows how to get the Message property value.

string msg = err.Message;
Console.WriteLine("Message: {0}", msg);

.NET Framework
Available since 2.0
Return to top
Show: