XPathException 构造函数

定义

初始化 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

初始化 XPathException 类的新实例。

public:
 XPathException();
public XPathException ();
Public Sub New ()

适用于

XPathException(String)

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

注意

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);
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);
new System.Xml.XPath.XPathException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xml.XPath.XPathException
[<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
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

SerializationInfo 对象,包含 XPathException 的所有属性。

属性

适用于

XPathException(String, Exception)

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

引发 ExceptionXPathException(如果有的话)。 此值可为 null

适用于