MessagePart Event
Fired for each message part when FetchMessageInfo is called.
Syntax
public event OnMessagePartHandler OnMessagePart; public delegate void OnMessagePartHandler(object sender, ImapMessagePartEventArgs e); public class ImapMessagePartEventArgs : EventArgs { public string PartId { get; } public long Size { get; } public string ContentType { get; } public string Filename { get; } public string ContentEncoding { get; } public string Parameters { get; } public string MultipartMode { get; } public string ContentId { get; } public string ContentDisposition { get; } }
Public Event OnMessagePart As OnMessagePartHandler Public Delegate Sub OnMessagePartHandler(sender As Object, e As ImapMessagePartEventArgs) Public Class ImapMessagePartEventArgs Inherits EventArgs Public ReadOnly Property PartId As String Public ReadOnly Property Size As Long Public ReadOnly Property ContentType As String Public ReadOnly Property Filename As String Public ReadOnly Property ContentEncoding As String Public ReadOnly Property Parameters As String Public ReadOnly Property MultipartMode As String Public ReadOnly Property ContentId As String Public ReadOnly Property ContentDisposition As String End Class
Remarks
The PartId parameter denotes the PartId which may be identified in other parts or messages. The format of part id-s is specified by the IMAP RFCs.
The Size parameter gives the size of this part.
The ContentType parameter shows the type of data contained in the part.
The ContentEncoding parameter shows how the data is encoded.
The Filename parameter shows the filename corresponding to the part (if the part was included in the message as an attached file).
The Parameters parameter contains the additional parameters passed to the ContentType header such as the part charset etc.
The MultipartMode parameter shows the how this part relates to the message's whole multipart structure ('mixed', 'alternative', etc.).
The ContentId parameter shows the value of the Content-Id header for the part.
The ContentEncoding parameter shows the value of the Content-Encoding header for the part.