MessageEncoder.WriteMessage Method (Message, Int32, BufferManager)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Writes a message less than a specified size to a byte array buffer.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
'Declaration Public Function WriteMessage ( _ message As Message, _ maxMessageSize As Integer, _ bufferManager As BufferManager _ ) As ArraySegment(Of Byte)
Parameters
- message
- Type: System.ServiceModel.Channels.Message
The Message to write to the message buffer.
- maxMessageSize
- Type: System.Int32
The maximum message size that can be written.
- bufferManager
- Type: System.ServiceModel.Channels.BufferManager
The BufferManager that manages the buffer to which the message is written.
Return Value
Type: System.ArraySegment(Of Byte)A ArraySegment(Of T) of type byte that provides the buffer to which the message is serialized.
This method calls the abstract method WriteMessage(Message, Int32, BufferManager, Int32) with messageOffset = 0.
Show: