次の方法で共有


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

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Public MustOverride Function ReadMessage ( _
    buffer As ArraySegment(Of Byte), _
    bufferManager As BufferManager, _
    contentType As String _
) As Message
public abstract Message ReadMessage(
    ArraySegment<byte> buffer,
    BufferManager bufferManager,
    string contentType
)

Parameters

  • 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.

Examples

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

Version Information

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

Platforms

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