MessageState Enumeration
TOC
Collapse the table of content
Expand the table of content

MessageState Enumeration

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Specifies the status of a message.

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

public enum MessageState

Member nameDescription
CreatedThe message has been created.
ReadThe message is being read.
WrittenThe message has been written.
CopiedThe message has been copied.
ClosedThe message has been closed and can no longer be accessed.

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft