ConfigurationErrorsException.Message Property

 

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: