Export (0) Print
Expand All

IEndpointBehavior.ApplyClientBehavior Method

Implements a modification or extension of the client across an endpoint.

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

void ApplyClientBehavior(
	ServiceEndpoint endpoint,
	ClientRuntime clientRuntime
)

Parameters

endpoint
Type: System.ServiceModel.Description.ServiceEndpoint

The endpoint that is to be customized.

clientRuntime
Type: System.ServiceModel.Dispatcher.ClientRuntime

The client runtime to be customized.

Implement the ApplyClientBehavior method to view, modify, or add custom extension to the client runtime across all messages used with an endpoint or for specific operations. For details about what customizations you can do with a client run-time object, see ClientRuntime and ClientOperation.

It is recommended that the ApplyClientBehavior method throw a NotImplementedException if the behavior is only intended for use in a service application.

Because other behaviors may have already added or removed some operations from the runtime there is no guarantee that there are the same number of operations in the description as there are DispatchOperation objects in the Operations property.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Store apps

Supported in: Windows 8

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft