ClientCredentials.ApplyClientBehavior(ServiceEndpoint, ClientRuntime) ClientCredentials.ApplyClientBehavior(ServiceEndpoint, ClientRuntime) ClientCredentials.ApplyClientBehavior(ServiceEndpoint, ClientRuntime) Method

Definition

Applies the specified client behavior to the endpoint.

public:
 virtual void ApplyClientBehavior(System::ServiceModel::Description::ServiceEndpoint ^ serviceEndpoint, System::ServiceModel::Dispatcher::ClientRuntime ^ behavior);
public virtual void ApplyClientBehavior (System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Dispatcher.ClientRuntime behavior);
abstract member ApplyClientBehavior : System.ServiceModel.Description.ServiceEndpoint * System.ServiceModel.Dispatcher.ClientRuntime -> unit
override this.ApplyClientBehavior : System.ServiceModel.Description.ServiceEndpoint * System.ServiceModel.Dispatcher.ClientRuntime -> unit

Parameters

serviceEndpoint
ServiceEndpoint ServiceEndpoint ServiceEndpoint

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

behavior
ClientRuntime ClientRuntime ClientRuntime

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

Implements

Exceptions

Remarks

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

Applies to