WebHttpBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime) 方法     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
实现 ApplyClientBehavior(ServiceEndpoint, ClientRuntime) 方法可支持对终结点上的客户端进行修改或扩展。
public:
 virtual void ApplyClientBehavior(System::ServiceModel::Description::ServiceEndpoint ^ endpoint, System::ServiceModel::Dispatcher::ClientRuntime ^ clientRuntime);
	public virtual void ApplyClientBehavior(System.ServiceModel.Description.ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.ClientRuntime clientRuntime);
	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 (endpoint As ServiceEndpoint, clientRuntime As ClientRuntime)
	参数
- endpoint
 - ServiceEndpoint
 
公开协定的终结点。
- clientRuntime
 - ClientRuntime
 
要应用自定义行为的客户端。
实现
注解
作为此方法的一部分,可针对每个操作调用 GetRequestClientFormatter(OperationDescription, ServiceEndpoint) 和 GetReplyClientFormatter(OperationDescription, ServiceEndpoint),以确定要安装的 IClientMessageFormatter。