Retrieves the IMAP message flag attributes for the mail message with the specified unique identifier (UID).

Namespace: S22.Imap
Assembly: S22.Imap (in S22.Imap.dll) Version: 3.6.0.0 (3.6.0.0)

Syntax

C#
public IEnumerable<MessageFlag> GetMessageFlags(
	uint uid,
	string mailbox = null
)

Parameters

uid
Type: System..::..UInt32
The UID of the mail message to retrieve the flag attributes for.
mailbox (Optional)
Type: System..::..String
The mailbox the message will be retrieved from. If this parameter is omitted, the value of the DefaultMailbox property is used to determine the mailbox to operate on.

Return Value

An enumerable collection of message flags set for the message with the specified UID.

Implements

IImapClient..::..GetMessageFlags(UInt32, String)

Exceptions

ExceptionCondition
S22.Imap..::..BadServerResponseExceptionThe mail message flags could not be retrieved. The message property of the exception contains the error message returned by the server.
System..::..ObjectDisposedExceptionThe ImapClient object has been disposed.
System.IO..::..IOExceptionThere was a failure writing to or reading from the network.
S22.Imap..::..NotAuthenticatedExceptionThe method was called in non-authenticated state, i.e. before logging in.

See Also