InvalidBodyAccessException Constructor (SerializationInfo, StreamingContext)


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

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

protected InvalidBodyAccessException(
	SerializationInfo info,
	StreamingContext context


Type: System.Runtime.Serialization.SerializationInfo

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

Type: System.Runtime.Serialization.StreamingContext

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

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