共用方式為


IDispatchMessageFormatter.SerializeReply 方法

定義

從指定的訊息版本、參數陣列和傳回值來序列化回覆訊息。

public:
 System::ServiceModel::Channels::Message ^ SerializeReply(System::ServiceModel::Channels::MessageVersion ^ messageVersion, cli::array <System::Object ^> ^ parameters, System::Object ^ result);
public:
 System::ServiceModel::Channels::Message ^ SerializeReply(System::ServiceModel::Channels::MessageVersion ^ version, cli::array <System::Object ^> ^ parameters, System::Object ^ result);
public System.ServiceModel.Channels.Message SerializeReply (System.ServiceModel.Channels.MessageVersion messageVersion, object[] parameters, object result);
public System.ServiceModel.Channels.Message SerializeReply (System.ServiceModel.Channels.MessageVersion version, object[] parameters, object result);
abstract member SerializeReply : System.ServiceModel.Channels.MessageVersion * obj[] * obj -> System.ServiceModel.Channels.Message
abstract member SerializeReply : System.ServiceModel.Channels.MessageVersion * obj[] * obj -> System.ServiceModel.Channels.Message
Public Function SerializeReply (messageVersion As MessageVersion, parameters As Object(), result As Object) As Message
Public Function SerializeReply (version As MessageVersion, parameters As Object(), result As Object) As Message

參數

messageVersionversion
MessageVersion

SOAP 訊息版本。

parameters
Object[]

out 參數。

result
Object

傳回值。

傳回

Message

已序列化的回覆訊息。

範例

如需完整範例,請參閱 操作格式器和作業選取器

適用於