FilterInvalidBodyAccessException 构造函数

定义

初始化 FilterInvalidBodyAccessException 类的新实例。

重载

FilterInvalidBodyAccessException()

初始化 FilterInvalidBodyAccessException 类的新实例。

FilterInvalidBodyAccessException(String)

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

FilterInvalidBodyAccessException(SerializationInfo, StreamingContext)

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

FilterInvalidBodyAccessException(String, Collection<MessageFilter>)

利用指定的错误消息和试图检查消息正文的筛选器初始化 FilterInvalidBodyAccessException 类的新实例。

FilterInvalidBodyAccessException(String, Exception)

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

FilterInvalidBodyAccessException(String, Exception, Collection<MessageFilter>)

利用指定的错误消息、导致当前异常的内部异常和包含试图检查正文的筛选器的集合来初始化 FilterInvalidBodyAccessException 类的新实例。

FilterInvalidBodyAccessException()

初始化 FilterInvalidBodyAccessException 类的新实例。

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

适用于

FilterInvalidBodyAccessException(String)

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

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

参数

message
String

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

适用于

FilterInvalidBodyAccessException(SerializationInfo, StreamingContext)

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

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

参数

info
SerializationInfo

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

context
StreamingContext

指定流的源和目标的 StreamingContext

适用于

FilterInvalidBodyAccessException(String, Collection<MessageFilter>)

利用指定的错误消息和试图检查消息正文的筛选器初始化 FilterInvalidBodyAccessException 类的新实例。

public:
 FilterInvalidBodyAccessException(System::String ^ message, System::Collections::ObjectModel::Collection<System::ServiceModel::Dispatcher::MessageFilter ^> ^ filters);
public FilterInvalidBodyAccessException (string message, System.Collections.ObjectModel.Collection<System.ServiceModel.Dispatcher.MessageFilter> filters);
new System.ServiceModel.Dispatcher.FilterInvalidBodyAccessException : string * System.Collections.ObjectModel.Collection<System.ServiceModel.Dispatcher.MessageFilter> -> System.ServiceModel.Dispatcher.FilterInvalidBodyAccessException
Public Sub New (message As String, filters As Collection(Of MessageFilter))

参数

message
String

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

filters
Collection<MessageFilter>

试图检查消息正文的 MessageFilter

适用于

FilterInvalidBodyAccessException(String, Exception)

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

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

参数

message
String

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

innerException
Exception

导致引发当前异常的 Exception

适用于

FilterInvalidBodyAccessException(String, Exception, Collection<MessageFilter>)

利用指定的错误消息、导致当前异常的内部异常和包含试图检查正文的筛选器的集合来初始化 FilterInvalidBodyAccessException 类的新实例。

public:
 FilterInvalidBodyAccessException(System::String ^ message, Exception ^ innerException, System::Collections::ObjectModel::Collection<System::ServiceModel::Dispatcher::MessageFilter ^> ^ filters);
public FilterInvalidBodyAccessException (string message, Exception innerException, System.Collections.ObjectModel.Collection<System.ServiceModel.Dispatcher.MessageFilter> filters);
new System.ServiceModel.Dispatcher.FilterInvalidBodyAccessException : string * Exception * System.Collections.ObjectModel.Collection<System.ServiceModel.Dispatcher.MessageFilter> -> System.ServiceModel.Dispatcher.FilterInvalidBodyAccessException
Public Sub New (message As String, innerException As Exception, filters As Collection(Of MessageFilter))

参数

message
String

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

innerException
Exception

导致引发当前异常的 Exception

filters
Collection<MessageFilter>

包含试图检查消息正文的筛选器的类型 Collection<T>MessageFilter

适用于