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 参数 (当前 GetResponseStream 接收器堆栈中的顶部接收器上 (msgheaders) ) 。 接收器堆栈中的顶部接收器保持不变。

适用于