ClientCredentials.ApplyClientBehavior Method (ServiceEndpoint, ClientRuntime)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Applies the specified client behavior to the endpoint.

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

public virtual void ApplyClientBehavior(
	ServiceEndpoint serviceEndpoint,
	ClientRuntime behavior


Type: System.ServiceModel.Description.ServiceEndpoint

The endpoint to which the specified client behavior is to be applied.

Type: System.ServiceModel.Dispatcher.ClientRuntime

The client behavior that is to be applied to the specified endpoint.

Exception Condition

serviceEndpoint or behavior is null.

The client behavior is applied to the endpoint only if the endpoint does not have a SecurityBindingElement associated with it.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Return to top