Muokkaa

Jaa


ServerChannelSinkStack.GetResponseStream(IMessage, ITransportHeaders) Method

Definition

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

public:
 virtual System::IO::Stream ^ GetResponseStream(System::Runtime::Remoting::Messaging::IMessage ^ msg, System::Runtime::Remoting::Channels::ITransportHeaders ^ headers);
public System.IO.Stream GetResponseStream (System.Runtime.Remoting.Messaging.IMessage msg, System.Runtime.Remoting.Channels.ITransportHeaders headers);
[System.Security.SecurityCritical]
public System.IO.Stream GetResponseStream (System.Runtime.Remoting.Messaging.IMessage msg, System.Runtime.Remoting.Channels.ITransportHeaders headers);
abstract member GetResponseStream : System.Runtime.Remoting.Messaging.IMessage * System.Runtime.Remoting.Channels.ITransportHeaders -> System.IO.Stream
override this.GetResponseStream : System.Runtime.Remoting.Messaging.IMessage * System.Runtime.Remoting.Channels.ITransportHeaders -> System.IO.Stream
[<System.Security.SecurityCritical>]
abstract member GetResponseStream : System.Runtime.Remoting.Messaging.IMessage * System.Runtime.Remoting.Channels.ITransportHeaders -> System.IO.Stream
override this.GetResponseStream : System.Runtime.Remoting.Messaging.IMessage * System.Runtime.Remoting.Channels.ITransportHeaders -> System.IO.Stream
Public Function GetResponseStream (msg As IMessage, headers As ITransportHeaders) As Stream

Parameters

msg
IMessage

The message to be serialized onto the requested stream.

headers
ITransportHeaders

The headers retrieved from the server response stream.

Returns

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

Implements

Attributes

Exceptions

The sink stack is empty.

Remarks

This method returns the stream returned by the IServerChannelSink.GetResponseStream called with the msg and headers parameters (GetResponseStream (msg, headers)) on the top sink in the current sink stack. The top sink in the sink stack remains unchanged.

Applies to