共用方式為


ServerChannelSinkStack.GetResponseStream(IMessage, ITransportHeaders) 方法

定義

傳回指定訊息將在其上序列化的 Stream

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

參數

msg
IMessage

將在所要求資訊流上序列化的訊息。

headers
ITransportHeaders

從伺服器回應資料流所擷取的標頭。

傳回

Stream,指定訊息將在其上序列化。

實作

屬性

例外狀況

接收堆疊是空的。

備註

這個方法會傳回由 呼叫的 IServerChannelSink.GetResponseStream 資料流程,並在 msgheaders 目前接收堆疊的頂端接收上 ( (GetResponseStreammsgheaders) ) 。 接收堆疊中的頂端接收會保持不變。

適用於