ConfigurationException.GetXmlNodeLineNumber(XmlNode) 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.
Caution
This class is obsolete, use System.Configuration!System.Configuration.ConfigurationErrorsException.GetLinenumber instead
Gets the line number within the configuration file that the internal XmlNode object represented when this configuration exception was thrown.
public:
static int GetXmlNodeLineNumber(System::Xml::XmlNode ^ node);
public static int GetXmlNodeLineNumber(System.Xml.XmlNode node);
[System.Obsolete("This class is obsolete, use System.Configuration!System.Configuration.ConfigurationErrorsException.GetLinenumber instead")]
public static int GetXmlNodeLineNumber(System.Xml.XmlNode node);
static member GetXmlNodeLineNumber : System.Xml.XmlNode -> int
[<System.Obsolete("This class is obsolete, use System.Configuration!System.Configuration.ConfigurationErrorsException.GetLinenumber instead")>]
static member GetXmlNodeLineNumber : System.Xml.XmlNode -> int
Public Shared Function GetXmlNodeLineNumber (node As XmlNode) As Integer
Parameters
- node
- XmlNode
The XmlNode that caused this ConfigurationException exception to be thrown.
Returns
An int representing the node line number.
- Attributes