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^)
.NET Framework (current version)
Applies the specified client behavior to the endpoint.
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
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Show: