MessageEncoder.ReadMessage Method (ArraySegment<Byte>, BufferManager, String)

When overridden in a derived class, reads a message from a specified stream.

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

public abstract Message ReadMessage(
	ArraySegment<byte> buffer,
	BufferManager bufferManager,
	string contentType
)

Parameters

buffer
Type: System.ArraySegment<Byte>
A ArraySegment<T> of type Byte that provides the buffer from which the message is deserialized.
bufferManager
Type: System.ServiceModel.Channels.BufferManager
The BufferManager that manages the buffer from which the message is deserialized.
contentType
Type: System.String
The Multipurpose Internet Mail Extensions (MIME) message-level content-type.

Return Value

Type: System.ServiceModel.Channels.Message
The Message that is read from the stream specified.

The following code example shows how to implement the ReadMessage(ArraySegment<Byte>, BufferManager, String) method.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: