WebHttpBehavior.GetReplyClientFormatter(OperationDescription, ServiceEndpoint) 方法

定義

取得指定之端點和服務作業在用戶端上的回覆格式器。Gets the reply formatter on the client for the specified endpoint and service operation.

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

參數

operationDescription
OperationDescription

服務作業。The service operation.

endpoint
ServiceEndpoint

服務端點。The service endpoint.

傳回

IClientMessageFormatter

對指定之作業和端點於用戶端上的回覆格式器的 IClientMessageFormatter 參考。An IClientMessageFormatter reference to the reply formatter on the client for the specified operation and endpoint.

備註

這是衍生行為可使用的擴充點,可以用來提供本身的 IClientMessageFormatter 實作,而呼叫此實作即可將回應訊息還原序列化為服務作業的 out 參數/傳回值。This is an extensibility point that derived behaviors can use to supply their own implementation of IClientMessageFormatter that is called to deserialize the response message into the out parameters/return value of the service operation.

適用於