ClientCredentials.ApplyClientBehavior(ServiceEndpoint, ClientRuntime) 方法

定义

将指定的客户端行为应用于终结点。

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
Public Overridable Sub ApplyClientBehavior (serviceEndpoint As ServiceEndpoint, behavior As ClientRuntime)

参数

serviceEndpoint
ServiceEndpoint

要向其应用指定客户端行为的终结点。

behavior
ClientRuntime

要应用于指定终结点的客户端行为。

实现

例外

serviceEndpointbehaviornull.

注解

仅当终结点没有 SecurityBindingElement 与之关联的时,客户端行为才会应用于终结点。

适用于