Export (0) Print
Expand All

SoapServerFormatterSink.GetResponseStream Method

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.

Implements

IServerChannelSink.GetResponseStream(IServerResponseChannelSinkStack, Object, IMessage, ITransportHeaders)

This method is called when a response stream needs to be created.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft