ImapEventMessageNew(MessageSummaryItems, IEnumerableHeaderId) Constructor

Initializes a new instance of the ImapEventMessageNew class.

Definition

Namespace: MailKit.Net.Imap
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public MessageNew(
	MessageSummaryItems items,
	IEnumerable<HeaderId> headers
)

Parameters

items  MessageSummaryItems
The message summary items to automatically retrieve for new messages.
headers  IEnumerableHeaderId
Additional message headers to retrieve for new messages.

Remarks

Initializes a new instance of the ImapEventMessageNew class.

Exceptions

ArgumentNullException headers is .
ArgumentException

One or more of the specified headers is invalid.

See Also