Condividi tramite


MessageState Enumeration

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

Specifies the status of a message.

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

Syntax

'Declaration
Public Enumeration MessageState
public enum MessageState

Members

Member name Description
Supported by Silverlight for Windows Phone Created The message has been created.
Supported by Silverlight for Windows Phone Read The message is being read.
Supported by Silverlight for Windows Phone Written The message has been written.
Supported by Silverlight for Windows Phone Copied The message has been copied.
Supported by Silverlight for Windows Phone Closed The message has been closed and can no longer be accessed.

Remarks

As the body of a Message object is a stream, it can only be read or written once. This is enforced by maintaining the current state of the Message object. A Message object can be read, written or copied when in the Created state. Other states are Read, Written and Copied, which means that the respective action has been performed already once.

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.