共用方式為


BinaryClientFormatterSink.GetRequestStream 方法

定義

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

public:
 virtual System::IO::Stream ^ GetRequestStream(System::Runtime::Remoting::Messaging::IMessage ^ msg, System::Runtime::Remoting::Channels::ITransportHeaders ^ headers);
public System.IO.Stream GetRequestStream (System.Runtime.Remoting.Messaging.IMessage msg, System.Runtime.Remoting.Channels.ITransportHeaders headers);
abstract member GetRequestStream : System.Runtime.Remoting.Messaging.IMessage * System.Runtime.Remoting.Channels.ITransportHeaders -> System.IO.Stream
override this.GetRequestStream : System.Runtime.Remoting.Messaging.IMessage * System.Runtime.Remoting.Channels.ITransportHeaders -> System.IO.Stream
Public Function GetRequestStream (msg As IMessage, headers As ITransportHeaders) As Stream

參數

msg
IMessage

IMethodCallMessage,其中包含關於方法呼叫的詳細資訊。

headers
ITransportHeaders

要加入至前往伺服器之外送訊息的標頭。

傳回

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

實作

備註

方法 GetRequestStream 會在串行化訊息之前,由格式器接收呼叫。

適用於

另請參閱