Bagikan melalui


SdlChannelSink.GetResponseStream Metode

Definisi

Mengembalikan ke Stream tempat pesan respons yang disediakan akan diserialisasikan.

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

Parameter

sinkStack
IServerResponseChannelSinkStack

Tumpukan sink yang mengarah kembali ke sink transportasi server.

state
Object

Informasi yang terkait dengan sink saat ini, dihasilkan di sisi permintaan, dan diperlukan di sisi respons.

msg
IMessage

Pesan respons untuk diserialisasikan.

headers
ITransportHeaders

Header yang akan dimasukkan ke dalam aliran respons ke klien.

Mengembalikan

Tujuan Stream pesan respons yang disediakan akan diserialisasikan.

Penerapan

Keterangan

Metode saat ini dipanggil ketika aliran respons perlu dibuat.

Berlaku untuk

Lihat juga