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 时,才会将客户端行为应用于终结点。

适用于