BinaryClientFormatterSink.GetRequestStream(IMessage, ITransportHeaders) 方法
定义
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,包含有关方法调用的详细信息。The IMethodCallMessage that contains details about the method call.
- headers
- ITransportHeaders
要添加到发往服务器的传出消息的标头。The headers to add to the outgoing message that is heading to the server.
返回
所提供的消息将要序列化到的 Stream。The Stream onto which the provided message is to be serialized.
实现
注解
GetRequestStream方法在序列化消息之前由格式化程序接收器调用。The GetRequestStream method is called by the formatter sink before it serializes the message.