MimeIteratorCurrentMessage Property

Get the message that contains the current entity.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public MimeMessage CurrentMessage { get; }

Property Value

MimeMessage
The message that contains the current entity.

Remarks

Gets the message that contains the current entity. This is either the top-level Message or, if the current entity is a descendant of a MessagePart, the Message of the nearest such ancestor.

Exceptions

InvalidOperationException Either MoveNext has not been called or MoveNext has moved beyond the end of the message.

See Also