WriteMessage Method (Message, Stream)
Collapse the table of content
Expand the table of content

MessageEncoder.WriteMessage Method (Message, Stream)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

When overridden in a derived class, writes a message to a specified stream.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public abstract void WriteMessage(
	Message message,
	Stream stream
)

Parameters

message
Type: System.ServiceModel.Channels.Message
The Message to write to the stream.
stream
Type: System.IO.Stream
The Stream object to which the message is written.

Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows CE Platform Note: This method throws a NotSupportedException on the .NET Compact Framework.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft