SoapServerFormatterSink.GetResponseStream Method (IServerResponseChannelSinkStack, Object, IMessage, ITransportHeaders)

 

Returns the Stream onto which the provided response message is to be serialized.

Namespace:   System.Runtime.Remoting.Channels
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
)

Parameters

sinkStack
Type: System.Runtime.Remoting.Channels.IServerResponseChannelSinkStack

A stack of sinks leading back to the server transport sink.

state
Type: System.Object

Information associated with the current sink, generated on the request side, and needed on the response side.

msg
Type: System.Runtime.Remoting.Messaging.IMessage

The response message that is to be serialized.

headers
Type: System.Runtime.Remoting.Channels.ITransportHeaders

The headers to put in the response stream to the client.

Return Value

Type: 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.

.NET Framework
Available since 1.1
Return to top
Show: