共用方式為


SdlChannelSink.GetResponseStream 方法

定義

傳回所提供的回應訊息將在其上序列化的 Stream

public:
 virtual 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);
abstract member GetResponseStream : System.Runtime.Remoting.Channels.IServerResponseChannelSinkStack * obj * System.Runtime.Remoting.Messaging.IMessage * System.Runtime.Remoting.Channels.ITransportHeaders -> System.IO.Stream
override this.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

接收堆疊,引導回伺服器傳輸接收。

state
Object

與目前接收有關聯、產生於要求端、並且是回應端所需的資訊。

msg
IMessage

要序列化的回應訊息。

headers
ITransportHeaders

要置於用戶端的回應資料流中的標頭。

傳回

Stream,所提供的回應訊息將在其上序列化。

實作

備註

需要建立回應數據流時,會呼叫目前的 方法。

適用於

另請參閱