Gets or sets read/unread status of the mail message.
Namespace: MailBee.EwsMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public bool IsRead { get; set; }
Public Property IsRead As Boolean
Get
Set
Property Value
Type:
BooleanIf
true, this mail message is read; if
false, this mail message is unread or this property is not available.
Exceptions Remarks You can use this property only with mail messages (not for contacts, appointments, etc). Also, make sure at least GenericItem was passed
to the method which was used to get this EwsItem object (passing just IdOnly won't let you then read the value of this property).
Note |
---|
To apply changes to IsRead property, you need to call UpdateItem(EwsItem) on this item after changing read/unread status.
Also, if you just need to set this flag (not read it) for some EwsItem, requesting just IdOnly to get this item is enough.
See the sample in Ews topic for example. |
See Also