MessageEncoder.WriteMessage Method (Message, Int32, BufferManager, Int32)
[ 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 of less than a specified size to a byte array buffer at the specified offset.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
'Declaration Public MustOverride Function WriteMessage ( _ message As Message, _ maxMessageSize As Integer, _ bufferManager As BufferManager, _ messageOffset As Integer _ ) 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.
- messageOffset
- Type: System.Int32
The offset of the segment that begins from the start of the byte array that provides the buffer.
Return Value
Type: System.ArraySegment(Of Byte)A ArraySegment(Of T) of type byte that provides the buffer to which the message is serialized.
Show: