Filename Property
Collapse the table of content
Expand the table of content

ConfigurationErrorsException.Filename Property

 

Gets the path to the configuration file that caused this configuration exception to be thrown.

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

public override string Filename { get; }

Property Value

Type: System.String

The path to the configuration file that caused this ConfigurationErrorsException to be thrown.

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

string fileName = err.Filename;
Console.WriteLine("Filename: {0}", fileName);

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft