Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ClientCredentials::ApplyClientBehavior Method (ServiceEndpoint^, ClientRuntime^)

 

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:
© 2017 Microsoft