Επεξεργασία

Κοινή χρήση μέσω


ConfigurationErrorsException.GetFilename Method

Definition

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

Overloads

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)

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

GetFilename(XmlNode)

Source:
ConfigurationErrorsException.cs
Source:
ConfigurationErrorsException.cs
Source:
ConfigurationErrorsException.cs
Source:
ConfigurationErrorsException.cs
Source:
ConfigurationErrorsException.cs

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

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.

Applies to

GetFilename(XmlReader)

Source:
ConfigurationErrorsException.cs
Source:
ConfigurationErrorsException.cs
Source:
ConfigurationErrorsException.cs
Source:
ConfigurationErrorsException.cs
Source:
ConfigurationErrorsException.cs

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

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