InvalidBodyAccessException Constructor (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.

Namespace:   System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

protected:
InvalidBodyAccessException(
	String^ message,
	Exception^ innerException
)

Parameters

message
Type: System::String^

The error message that explains the reason for the exception.

innerException
Type: System::Exception^

The exception that is the cause of the current exception.

Notes to Implementers:

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.

.NET Framework
Available since 3.0
Return to top
Show: