Freigeben über


MessageEncoderFactory.CreateSessionEncoder Method

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

Returns a message encoder that can be used to correlate messages in session-based exchanges.

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

Syntax

'Declaration
Public Overridable Function CreateSessionEncoder As MessageEncoder
public virtual MessageEncoder CreateSessionEncoder()

Return Value

Type: System.ServiceModel.Channels.MessageEncoder
The MessageEncoder that is used in session-based exchanges of messages.

Remarks

A session-based message encoder can keep track the individual messages that form part of a conversation that consists of all the messages exchanged between two endpoints that are part of a session.

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.