ConfigurationErrorsException.BareMessage ConfigurationErrorsException.BareMessage ConfigurationErrorsException.BareMessage ConfigurationErrorsException.BareMessage Property

Definition

Gets a description of why this configuration exception was thrown.

public:
 virtual property System::String ^ BareMessage { System::String ^ get(); };
public override string BareMessage { get; }
member this.BareMessage : string
Public Overrides ReadOnly Property BareMessage As String

Property Value

A description of why this ConfigurationErrorsException was thrown.

Examples

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

string bmsg = err.BareMessage;
Console.WriteLine("BareMessage: {0}", bmsg);
Dim bmsg As String = err.BareMessage
Console.WriteLine("BareMessage: {0}", bmsg)

Remarks

The BareMessage property does not contain the name of the configuration file or the line number at which this ConfigurationErrorsException exception occurred. If you want a message that contains the name of the configuration file and the line number, along with the message, use the Message property.

Applies to