IServerResponseChannelSinkStack.GetResponseStream Method (IMessage, ITransportHeaders)

 

Returns the Stream onto which the specified message is to be serialized.

Namespace:   System.Runtime.Remoting.Channels
Assembly:  mscorlib (in mscorlib.dll)

[SecurityCriticalAttribute]
Stream GetResponseStream(
	IMessage msg,
	ITransportHeaders headers
)

Parameters

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

The message to be serialized onto the requested stream.

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

The headers retrieved from the server response stream.

Return Value

Type: System.IO.Stream

The Stream onto which the specified message is to be serialized.

Exception Condition
SecurityException

The immediate caller does not have infrastructure permission.

SecurityPermission

for operating with infrastructure code. Demand value: SecurityAction.LinkDemand; Permission value: SecurityPermissionFlag.Infrastructure

.NET Framework
Available since 1.1
Return to top
Show: