WebHttpBehavior.AddClientErrorInspector Method

Adds a client error inspector to the specified client runtime.

Namespace:  System.ServiceModel.Description
Assembly:  System.ServiceModel.Web.Extensions (in System.ServiceModel.Web.Extensions.dll)

protected virtual void AddClientErrorInspector(
	ServiceEndpoint endpoint,
	ClientRuntime clientRuntime
)

Parameters

endpoint
Type: System.ServiceModel.Description.ServiceEndpoint
A service endpoint.
clientRuntime
Type: System.ServiceModel.Dispatcher.ClientRuntime
The client runtime.

Adds an IClientMessageInspector to the ClientRuntime and sets the MessageInspectors property to true.

Caution noteCaution:

Note that the endpoint parameter is not used by this method as implemented in Silverlight 5.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: