MessageEncoder::WriteMessage Method (Message^, Int32, BufferManager^)
.NET Framework (current version)
Writes a message less than a specified size to a byte array buffer.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: ArraySegment<unsigned char> WriteMessage( Message^ message, int maxMessageSize, BufferManager^ bufferManager )
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<Byte>A ArraySegment<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.
Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: