XPathNavigatorException 构造函数

定义

初始化 XPathNavigatorException 类的新实例。

重载

XPathNavigatorException()

初始化 XPathNavigatorException 类的新实例。

XPathNavigatorException(String)

用指定的错误消息初始化 XPathNavigatorException 类的新实例。

XPathNavigatorException(SerializationInfo, StreamingContext)

使用指定流的源和目标的数据以及序列化异常所需的信息来初始化 XPathNavigatorException 类的新实例。

XPathNavigatorException(String, Exception)

利用指定错误消息以及导致当前异常的内部异常来初始化 XPathNavigatorException 类的新实例。

XPathNavigatorException()

初始化 XPathNavigatorException 类的新实例。

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

适用于

XPathNavigatorException(String)

用指定的错误消息初始化 XPathNavigatorException 类的新实例。

public:
 XPathNavigatorException(System::String ^ message);
public XPathNavigatorException (string message);
new System.ServiceModel.Dispatcher.XPathNavigatorException : string -> System.ServiceModel.Dispatcher.XPathNavigatorException
Public Sub New (message As String)

参数

message
String

解释异常原因的错误消息。

适用于

XPathNavigatorException(SerializationInfo, StreamingContext)

使用指定流的源和目标的数据以及序列化异常所需的信息来初始化 XPathNavigatorException 类的新实例。

protected:
 XPathNavigatorException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected XPathNavigatorException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ServiceModel.Dispatcher.XPathNavigatorException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ServiceModel.Dispatcher.XPathNavigatorException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

包含序列化异常所需的所有数据的 SerializationInfo

context
StreamingContext

指定流的源和目标的 StreamingContext

适用于

XPathNavigatorException(String, Exception)

利用指定错误消息以及导致当前异常的内部异常来初始化 XPathNavigatorException 类的新实例。

public:
 XPathNavigatorException(System::String ^ message, Exception ^ innerException);
public XPathNavigatorException (string message, Exception innerException);
new System.ServiceModel.Dispatcher.XPathNavigatorException : string * Exception -> System.ServiceModel.Dispatcher.XPathNavigatorException
Public Sub New (message As String, innerException As Exception)

参数

message
String

解释异常原因的错误消息。

innerException
Exception

导致引发当前异常的 Exception

适用于