WebHttpBehavior.GetRequestClientFormatter 方法

定义

获取指定服务操作和终结点的客户端上的请求格式化程序。

protected:
 virtual System::ServiceModel::Dispatcher::IClientMessageFormatter ^ GetRequestClientFormatter(System::ServiceModel::Description::OperationDescription ^ operationDescription, System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
protected virtual System.ServiceModel.Dispatcher.IClientMessageFormatter GetRequestClientFormatter (System.ServiceModel.Description.OperationDescription operationDescription, System.ServiceModel.Description.ServiceEndpoint endpoint);
abstract member GetRequestClientFormatter : System.ServiceModel.Description.OperationDescription * System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.Dispatcher.IClientMessageFormatter
override this.GetRequestClientFormatter : System.ServiceModel.Description.OperationDescription * System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.Dispatcher.IClientMessageFormatter
Protected Overridable Function GetRequestClientFormatter (operationDescription As OperationDescription, endpoint As ServiceEndpoint) As IClientMessageFormatter

参数

operationDescription
OperationDescription

服务操作。

endpoint
ServiceEndpoint

服务终结点。

返回

IClientMessageFormatter

一个对指定操作和终结点的客户端上的请求格式化程序的 IClientMessageFormatter 引用。

注解

它是派生行为可用于提供其自身的 IClientMessageFormatter(可调用以将服务操作调用的输入参数转换为请求消息)的实现的扩展点。 必须将服务操作的 UriTemplate 中指定的参数序列化为请求消息的 To URI,并且必须将其他参数序列化为请求消息的正文。

适用于