ClientCredentials.ApplyClientBehavior Method (ServiceEndpoint, ClientRuntime)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
)

Parameters

serviceEndpoint
Type: System.ServiceModel.Description.ServiceEndpoint

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

behavior
Type: System.ServiceModel.Dispatcher.ClientRuntime

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

Exception Condition
ArgumentNullException

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
Show: