SoapServerFormatterSink.GetResponseStream Method (IServerResponseChannelSinkStack, Object, IMessage, ITransportHeaders)
Returns the Stream onto which the provided response message is to be serialized.
Assembly: System.Runtime.Remoting (in System.Runtime.Remoting.dll)
[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.Infrastructure, Infrastructure = true)] public Stream GetResponseStream( IServerResponseChannelSinkStack sinkStack, object state, IMessage msg, ITransportHeaders headers )
A stack of sinks leading back to the server transport sink.
Information associated with the current sink, generated on the request side, and needed on the response side.
The response message that is to be serialized.
The headers to put in the response stream to the client.
Return ValueType: System.IO.Stream
The Stream onto which the provided response message is to be serialized.
This method is called when a response stream needs to be created.
Available since 1.1