XPathException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 XPathException 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| XPathException() |
初始化 XPathException 类的新实例。 |
| XPathException(String) |
使用指定的异常消息初始化类的新实例 XPathException 。 |
| XPathException(SerializationInfo, StreamingContext) |
已过时.
使用对象中SerializationInfoStreamingContext的信息初始化类的新实例XPathException。 |
| XPathException(String, Exception) |
使用指定的异常消息和XPathException对象初始化类的新实例Exception。 |
XPathException()
- Source:
- XPathException.cs
- Source:
- XPathException.cs
- Source:
- XPathException.cs
- Source:
- XPathException.cs
- Source:
- XPathException.cs
初始化 XPathException 类的新实例。
public:
XPathException();
public XPathException();
Public Sub New ()
适用于
XPathException(String)
- Source:
- XPathException.cs
- Source:
- XPathException.cs
- Source:
- XPathException.cs
- Source:
- XPathException.cs
- Source:
- XPathException.cs
使用指定的异常消息初始化类的新实例 XPathException 。
public:
XPathException(System::String ^ message);
public XPathException(string? message);
public XPathException(string message);
new System.Xml.XPath.XPathException : string -> System.Xml.XPath.XPathException
Public Sub New (message As String)
参数
- message
- String
错误条件的说明。
适用于
XPathException(SerializationInfo, StreamingContext)
- Source:
- XPathException.cs
- Source:
- XPathException.cs
- Source:
- XPathException.cs
- Source:
- XPathException.cs
- Source:
- XPathException.cs
注意
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
使用对象中SerializationInfoStreamingContext的信息初始化类的新实例XPathException。
protected:
XPathException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected XPathException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected XPathException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Xml.XPath.XPathException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xml.XPath.XPathException
new System.Xml.XPath.XPathException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xml.XPath.XPathException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
SerializationInfo包含 .XPathException. 的所有属性的对象
- context
- StreamingContext
StreamingContext 对象。
- 属性
适用于
XPathException(String, Exception)
- Source:
- XPathException.cs
- Source:
- XPathException.cs
- Source:
- XPathException.cs
- Source:
- XPathException.cs
- Source:
- XPathException.cs
使用指定的异常消息和XPathException对象初始化类的新实例Exception。
public:
XPathException(System::String ^ message, Exception ^ innerException);
public XPathException(string? message, Exception? innerException);
public XPathException(string message, Exception innerException);
new System.Xml.XPath.XPathException : string * Exception -> System.Xml.XPath.XPathException
Public Sub New (message As String, innerException As Exception)
参数
- message
- String
错误条件的说明。
- innerException
- Exception
扔 Exception 的 XPathException,如果有的话。 此值可为 null。