Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ConfigurationErrorsException::GetFilename Method (XmlNode^)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the path to the configuration file from which the internal XmlNode object was loaded when this configuration exception was thrown.

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

public:
static String^ GetFilename(
	XmlNode^ node
)

Parameters

node
Type: System.Xml::XmlNode^

The XmlNode object that caused this ConfigurationErrorsException exception to be thrown.

Return Value

Type: System::String^

The path to the configuration file from which the internal XmlNode object was loaded when this configuration exception was thrown.

The GetFilename method returns the name of the configuration file that contains the XmlNode object being parsed when the exception occurred.

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