Modifier

Partager via


InvalidBodyAccessException Constructors

Definition

Initializes a new instance of the InvalidBodyAccessException class.

Overloads

InvalidBodyAccessException(String)

Initializes a new instance of the InvalidBodyAccessException class with a specified error message.

InvalidBodyAccessException(SerializationInfo, StreamingContext)

Initializes a new instance of the InvalidBodyAccessException class with serialized and contextual information specified.

InvalidBodyAccessException(String, Exception)

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)

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)

Parameters

message
String

The error message that explains the reason for the exception.

Notes to Inheritors

When 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.

Applies to

InvalidBodyAccessException(SerializationInfo, StreamingContext)

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)

Parameters

info
SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Notes to Inheritors

When 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.

Applies to

InvalidBodyAccessException(String, Exception)

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)

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The exception that is the cause of the current exception.

Notes to Inheritors

When 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.

Applies to