WebHttpBehavior.GetReplyClientFormatter 方法

定義

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

C#
protected virtual System.ServiceModel.Dispatcher.IClientMessageFormatter GetReplyClientFormatter(System.ServiceModel.Description.OperationDescription operationDescription, System.ServiceModel.Description.ServiceEndpoint endpoint);

參數

operationDescription
OperationDescription

服務作業。

endpoint
ServiceEndpoint

服務端點。

傳回

對指定之作業和端點於用戶端上的回覆格式器的 IClientMessageFormatter 參考。

備註

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

適用於

產品 版本
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1