Bagikan melalui


IServerChannelSink.GetResponseStream Metode

Definisi

Mengembalikan ke tempat Stream pesan respons yang disediakan akan diserialisasikan.

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

Parameter

sinkStack
IServerResponseChannelSinkStack

Tumpukan sink yang mengarah kembali ke sink transportasi server.

state
Object

Status yang telah didorong ke tumpukan oleh sink ini.

msg
IMessage

Pesan respons untuk diserialisasikan.

headers
ITransportHeaders

Header yang akan dimasukkan ke dalam aliran respons ke klien.

Mengembalikan

Tempat Stream pesan respons yang disediakan akan diserialisasikan.

Atribut

Pengecualian

Pemanggil langsung tidak memiliki izin infrastruktur.

Keterangan

Metode ini dipanggil ketika aliran respons perlu dibuat.

Berlaku untuk