ConfigurationException.GetXmlNodeLineNumber(XmlNode) 方法

定义

注意

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

注意

ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException.GetFilename instead.

注意

ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException.GetLinenumber instead.

获取引发此配置异常时内部 XmlNode 对象所表示的配置文件中的行号。

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);
[System.Obsolete("ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException.GetFilename instead.")]
public static int GetXmlNodeLineNumber (System.Xml.XmlNode node);
[System.Obsolete("ConfigurationException has been deprecated. Use 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!System.Configuration.ConfigurationErrorsException.GetLinenumber instead")>]
static member GetXmlNodeLineNumber : System.Xml.XmlNode -> int
[<System.Obsolete("ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException.GetFilename instead.")>]
static member GetXmlNodeLineNumber : System.Xml.XmlNode -> int
[<System.Obsolete("ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException.GetLinenumber instead.")>]
static member GetXmlNodeLineNumber : System.Xml.XmlNode -> int
static member GetXmlNodeLineNumber : System.Xml.XmlNode -> int
Public Shared Function GetXmlNodeLineNumber (node As XmlNode) As Integer

参数

node
XmlNode

导致引发此 XmlNode 异常的 ConfigurationException

返回

一个 int,表示节点行号。

属性

适用于