EnvelopeHasSystemFlag Method |
Checks if the message has a certain system flag set.
Namespace: MailBee.ImapMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public bool HasSystemFlag(
SystemMessageFlags flag
)
Public Function HasSystemFlag (
flag As SystemMessageFlags
) As Boolean
Parameters
- flag
- Type: MailBee.ImapMailSystemMessageFlags
A system flag to check.
Return Value
Type:
Booleantrue if the message flags include the flag provided; otherwise,
false.
Remarks It's a helper method. Alternatively, you can easily check system flags by using logical AND operation against
SystemFlags value of
Flags property.
E.g.
if ((envelope.Flags.SystemFlags & SystemMessageFlags.Answered) > 0) would be equivalent to
if (envelope.HasSystemFlag(SystemMessageFlags.Answered)) (in C# syntax).
See Also