共用方式為


WebHttpBehavior.GetReplyDispatchFormatter 方法

定義

取得指定之端點和服務作業在服務上的回覆格式器。

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

參數

operationDescription
OperationDescription

服務作業。

endpoint
ServiceEndpoint

服務端點。

傳回

IDispatchMessageFormatter

對指定之作業和端點在服務上的回覆格式器的 IDispatchMessageFormatter 參考。

備註

這是衍生行為可使用的擴充點,可以用來提供本身的 IDispatchMessageFormatter 實作,而呼叫此實作即可將服務作業的傳回值/out 參數轉換成回應訊息。

適用於