ConfigurationException.GetXmlNodeLineNumber(XmlNode) Method

Definition

Caution

This class is obsolete, use System.Configuration!System.Configuration.ConfigurationErrorsException.GetLinenumber instead

Caution

This class is obsolete. Use System.Configuration.ConfigurationErrorsException

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);
[System.Obsolete("This class is obsolete, use System.Configuration!System.Configuration.ConfigurationErrorsException.GetLinenumber instead")]
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.ConfigurationErrorsException")]
public static int GetXmlNodeLineNumber (System.Xml.XmlNode node);
[<System.Obsolete("This class is obsolete, use System.Configuration!System.Configuration.ConfigurationErrorsException.GetLinenumber instead")>]
static member GetXmlNodeLineNumber : System.Xml.XmlNode -> int
static member GetXmlNodeLineNumber : System.Xml.XmlNode -> int
[<System.Obsolete("This class is obsolete.  Use System.Configuration.ConfigurationErrorsException")>]
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

Int32

An int representing the node line number.

Attributes

Applies to