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

定义

返回提供的响应消息将序列化到其上的 StreamReturns the Stream onto which the provided response message is to be serialized.

public:
 System::IO::Stream ^ GetResponseStream(System::Runtime::Remoting::Channels::IServerResponseChannelSinkStack ^ sinkStack, System::Object ^ state, System::Runtime::Remoting::Messaging::IMessage ^ msg, System::Runtime::Remoting::Channels::ITransportHeaders ^ headers);
public System.IO.Stream GetResponseStream (System.Runtime.Remoting.Channels.IServerResponseChannelSinkStack sinkStack, object state, System.Runtime.Remoting.Messaging.IMessage msg, System.Runtime.Remoting.Channels.ITransportHeaders headers);
[System.Security.SecurityCritical]
public System.IO.Stream GetResponseStream (System.Runtime.Remoting.Channels.IServerResponseChannelSinkStack sinkStack, object state, System.Runtime.Remoting.Messaging.IMessage msg, System.Runtime.Remoting.Channels.ITransportHeaders headers);
abstract member GetResponseStream : System.Runtime.Remoting.Channels.IServerResponseChannelSinkStack * obj * System.Runtime.Remoting.Messaging.IMessage * System.Runtime.Remoting.Channels.ITransportHeaders -> System.IO.Stream
[<System.Security.SecurityCritical>]
abstract member GetResponseStream : System.Runtime.Remoting.Channels.IServerResponseChannelSinkStack * obj * System.Runtime.Remoting.Messaging.IMessage * System.Runtime.Remoting.Channels.ITransportHeaders -> System.IO.Stream
Public Function GetResponseStream (sinkStack As IServerResponseChannelSinkStack, state As Object, msg As IMessage, headers As ITransportHeaders) As Stream

参数

sinkStack
IServerResponseChannelSinkStack

将发回服务器传输接收器的接收器堆栈。A stack of sinks leading back to the server transport sink.

state
Object

已被该接收器推送到堆栈的状态。The state that has been pushed to the stack by this sink.

msg
IMessage

要序列化的响应消息。The response message to serialize.

headers
ITransportHeaders

要放置在将发送到客户端的响应流中的标头。The headers to put in the response stream to the client.

返回

Stream

提供的响应消息将序列化到其上的 StreamThe Stream onto which the provided response message is to be serialized.

属性

例外

直接调用方没有基础结构权限。The immediate caller does not have infrastructure permission.

注解

需要创建响应流时,将调用此方法。This method is called when a response stream needs to be created.

适用于