Share via


WebHttpBehavior.AddClientErrorInspector Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Protected Overridable Sub AddClientErrorInspector ( _
    endpoint As ServiceEndpoint, _
    clientRuntime As ClientRuntime _
)
protected virtual void AddClientErrorInspector(
    ServiceEndpoint endpoint,
    ClientRuntime clientRuntime
)

Parameters

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4

Platforms

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