ConfigurationErrorsException.GetFilename Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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)
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기