ConfigurationException.BareMessage Property

Definition

Gets a description of why this configuration exception was thrown.

C#
public virtual string BareMessage { get; }
C#
public string BareMessage { get; }

Property Value

A description of why this ConfigurationException exception was thrown.

Remarks

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

Applies to

Produkt Verzie
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10