NavigatorInvalidBodyAccessException 构造函数

定义

初始化 NavigatorInvalidBodyAccessException 类的新实例。Initializes a new instance of the NavigatorInvalidBodyAccessException class.

重载

NavigatorInvalidBodyAccessException()

初始化 NavigatorInvalidBodyAccessException 类的新实例。Initializes a new instance of the NavigatorInvalidBodyAccessException class.

NavigatorInvalidBodyAccessException(String)

用指定的错误消息初始化 NavigatorInvalidBodyAccessException 类的新实例。Initializes a new instance of the NavigatorInvalidBodyAccessException class with a specified error message.

NavigatorInvalidBodyAccessException(SerializationInfo, StreamingContext)

使用指定流的源和目标的数据以及序列化异常所需的信息来初始化 NavigatorInvalidBodyAccessException 类的新实例。Initializes a new instance of the NavigatorInvalidBodyAccessException class with data that specifies the source and destination of the stream and the information required to serialize the exception.

NavigatorInvalidBodyAccessException(String, Exception)

利用指定错误消息以及导致当前异常的内部异常来初始化 NavigatorInvalidBodyAccessException 类的新实例。Initializes a new instance of the NavigatorInvalidBodyAccessException class with a specified error message and the inner exception that caused the current exception.

NavigatorInvalidBodyAccessException()

初始化 NavigatorInvalidBodyAccessException 类的新实例。Initializes a new instance of the NavigatorInvalidBodyAccessException class.

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

适用于

NavigatorInvalidBodyAccessException(String)

用指定的错误消息初始化 NavigatorInvalidBodyAccessException 类的新实例。Initializes a new instance of the NavigatorInvalidBodyAccessException class with a specified error message.

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

参数

message
String

解释异常原因的错误消息。The error message that explains the reason for the exception.

适用于

NavigatorInvalidBodyAccessException(SerializationInfo, StreamingContext)

使用指定流的源和目标的数据以及序列化异常所需的信息来初始化 NavigatorInvalidBodyAccessException 类的新实例。Initializes a new instance of the NavigatorInvalidBodyAccessException class with data that specifies the source and destination of the stream and the information required to serialize the exception.

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

参数

info
SerializationInfo

包含序列化异常所需的所有数据的 SerializationInfoThe SerializationInfo that contains all the data required to serialize the exception.

context
StreamingContext

指定流的源和目标的 StreamingContextThe StreamingContext that specifies the source and destination of the stream.

适用于

NavigatorInvalidBodyAccessException(String, Exception)

利用指定错误消息以及导致当前异常的内部异常来初始化 NavigatorInvalidBodyAccessException 类的新实例。Initializes a new instance of the NavigatorInvalidBodyAccessException class with a specified error message and the inner exception that caused the current exception.

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

参数

message
String

解释异常原因的错误消息。The error message that explains the reason for the exception.

innerException
Exception

导致引发当前异常的 ExceptionThe Exception that caused the current exception to be thrown.

适用于