SoapServerFormatterSink.GetResponseStream 方法

定义

返回提供的响应消息将序列化到其上的 Stream

public:
 virtual System::IO::Stream ^ GetResponseStream(System::Runtime::Remoting::Channels::IServerResponseChannelSinkStack ^ sinkStack, System::Object ^ state, System::Runtime::Remoting::Messaging::IMessage ^ msg, System::Runtime::Remoting::Channels::ITransportHeaders ^ headers);
public System.IO.Stream GetResponseStream (System.Runtime.Remoting.Channels.IServerResponseChannelSinkStack sinkStack, object state, System.Runtime.Remoting.Messaging.IMessage msg, System.Runtime.Remoting.Channels.ITransportHeaders headers);
abstract member GetResponseStream : System.Runtime.Remoting.Channels.IServerResponseChannelSinkStack * obj * System.Runtime.Remoting.Messaging.IMessage * System.Runtime.Remoting.Channels.ITransportHeaders -> System.IO.Stream
override this.GetResponseStream : System.Runtime.Remoting.Channels.IServerResponseChannelSinkStack * obj * System.Runtime.Remoting.Messaging.IMessage * System.Runtime.Remoting.Channels.ITransportHeaders -> System.IO.Stream
Public Function GetResponseStream (sinkStack As IServerResponseChannelSinkStack, state As Object, msg As IMessage, headers As ITransportHeaders) As Stream

参数

sinkStack
IServerResponseChannelSinkStack

将发回服务器传输接收器的接收器堆栈。

state
Object

与当前接收器关联的、在请求端生成而在响应端需要的信息。

msg
IMessage

要进行序列化的响应消息。

headers
ITransportHeaders

要放置在将发送到客户端的响应流中的标头。

返回

提供的响应消息将序列化到其上的 Stream

实现

注解

当需要创建响应流时,将调用此方法。

适用于