InvalidBodyAccessException InvalidBodyAccessException InvalidBodyAccessException InvalidBodyAccessException Constructors

定义

重载

InvalidBodyAccessException(String) InvalidBodyAccessException(String) InvalidBodyAccessException(String) InvalidBodyAccessException(String)

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

InvalidBodyAccessException(SerializationInfo, StreamingContext) InvalidBodyAccessException(SerializationInfo, StreamingContext) InvalidBodyAccessException(SerializationInfo, StreamingContext) InvalidBodyAccessException(SerializationInfo, StreamingContext)

使用序列化和上下文信息来初始化 InvalidBodyAccessException 类的新实例。Initializes a new instance of the InvalidBodyAccessException class with serialized and contextual information specified.

InvalidBodyAccessException(String, Exception) InvalidBodyAccessException(String, Exception) InvalidBodyAccessException(String, Exception) InvalidBodyAccessException(String, Exception)

使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 InvalidBodyAccessException 类的新实例。Initializes a new instance of the InvalidBodyAccessException class with a specified error message and a reference to the inner exception that is the cause of this exception.

InvalidBodyAccessException(String) InvalidBodyAccessException(String) InvalidBodyAccessException(String) InvalidBodyAccessException(String)

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

protected:
 InvalidBodyAccessException(System::String ^ message);
protected InvalidBodyAccessException (string message);
new System.ServiceModel.Dispatcher.InvalidBodyAccessException : string -> System.ServiceModel.Dispatcher.InvalidBodyAccessException
Protected Sub New (message As String)

参数

message
String String String String

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

继承者说明

当生成自定义 MessageFilterTable<TFilterData> 时,实施者负责将相关的参数传递到调用的构造函数来引发 InvalidBodyAccessExceptionWhen building a custom MessageFilterTable<TFilterData> it is the responsibility of the implementer to pass the relevant parameters to the constructor called to throw the InvalidBodyAccessException.

InvalidBodyAccessException(SerializationInfo, StreamingContext) InvalidBodyAccessException(SerializationInfo, StreamingContext) InvalidBodyAccessException(SerializationInfo, StreamingContext) InvalidBodyAccessException(SerializationInfo, StreamingContext)

使用序列化和上下文信息来初始化 InvalidBodyAccessException 类的新实例。Initializes a new instance of the InvalidBodyAccessException class with serialized and contextual information specified.

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

参数

info
SerializationInfo SerializationInfo SerializationInfo SerializationInfo

包含有关所引发异常的序列化对象数据的 SerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext StreamingContext StreamingContext StreamingContext

StreamingContext,它包含关于源或目标的上下文信息。The StreamingContext that contains contextual information about the source or destination.

继承者说明

当生成自定义 MessageFilterTable<TFilterData> 时,实施者负责将相关的参数传递到调用的构造函数来引发 InvalidBodyAccessExceptionWhen building a custom MessageFilterTable<TFilterData> it is the responsibility of the implementer to pass the relevant parameters to the constructor called to throw the InvalidBodyAccessException.

InvalidBodyAccessException(String, Exception) InvalidBodyAccessException(String, Exception) InvalidBodyAccessException(String, Exception) InvalidBodyAccessException(String, Exception)

使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 InvalidBodyAccessException 类的新实例。Initializes a new instance of the InvalidBodyAccessException class with a specified error message and a reference to the inner exception that is the cause of this exception.

protected:
 InvalidBodyAccessException(System::String ^ message, Exception ^ innerException);
protected InvalidBodyAccessException (string message, Exception innerException);
new System.ServiceModel.Dispatcher.InvalidBodyAccessException : string * Exception -> System.ServiceModel.Dispatcher.InvalidBodyAccessException
Protected Sub New (message As String, innerException As Exception)

参数

message
String String String String

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

innerException
Exception Exception Exception Exception

导致当前异常的异常。The exception that is the cause of the current exception.

继承者说明

当生成自定义 MessageFilterTable<TFilterData> 时,实施者负责将相关的参数传递到调用的构造函数来引发 InvalidBodyAccessExceptionWhen building a custom MessageFilterTable<TFilterData> it is the responsibility of the implementer to pass the relevant parameters to the constructor called to throw the InvalidBodyAccessException.

适用于