ConfigurationErrorsException.GetFilename ConfigurationErrorsException.GetFilename ConfigurationErrorsException.GetFilename ConfigurationErrorsException.GetFilename Method

Definition

Gets the path to the configuration file being read when this configuration exception was thrown.

Overloads

GetFilename(XmlNode) GetFilename(XmlNode) GetFilename(XmlNode) GetFilename(XmlNode)

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

GetFilename(XmlReader) GetFilename(XmlReader) GetFilename(XmlReader) GetFilename(XmlReader)

Gets the path to the configuration file that the internal XmlReader was reading when this configuration exception was thrown.

GetFilename(XmlNode) GetFilename(XmlNode) GetFilename(XmlNode) GetFilename(XmlNode)

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

public:
 static System::String ^ GetFilename(System::Xml::XmlNode ^ node);
public static string GetFilename (System.Xml.XmlNode node);
static member GetFilename : System.Xml.XmlNode -> string
Public Shared Function GetFilename (node As XmlNode) As String

Parameters

node
XmlNode XmlNode XmlNode XmlNode

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

Returns

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

Remarks

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

GetFilename(XmlReader) GetFilename(XmlReader) GetFilename(XmlReader) GetFilename(XmlReader)

Gets the path to the configuration file that the internal XmlReader was reading when this configuration exception was thrown.

public:
 static System::String ^ GetFilename(System::Xml::XmlReader ^ reader);
public static string GetFilename (System.Xml.XmlReader reader);
static member GetFilename : System.Xml.XmlReader -> string
Public Shared Function GetFilename (reader As XmlReader) As String

Parameters

reader
XmlReader XmlReader XmlReader XmlReader

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

Returns

The path of the configuration file the internal XmlReader object was accessing when the exception occurred.

Remarks

The GetFilename method returns the name of the configuration file that the XmlReader object was accessing when the exception occurred.

Applies to