BinaryClientFormatterSink.GetRequestStream Method (IMessage, ITransportHeaders)

 

Returns the Stream onto which the provided message is to be serialized.

Namespace:   System.Runtime.Remoting.Channels
Assembly:  System.Runtime.Remoting (in System.Runtime.Remoting.dll)

[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.Infrastructure, 
	Infrastructure = true)]
public Stream GetRequestStream(
	IMessage msg,
	ITransportHeaders headers
)

Parameters

msg
Type: System.Runtime.Remoting.Messaging.IMessage

The IMethodCallMessage that contains details about the method call.

headers
Type: System.Runtime.Remoting.Channels.ITransportHeaders

The headers to add to the outgoing message that is heading to the server.

Return Value

Type: System.IO.Stream

The Stream onto which the provided message is to be serialized.

The GetRequestStream method is called by the formatter sink before it serializes the message.

.NET Framework
Available since 1.1
Return to top
Show: