Gets information about a message with the specified sequence number.
Namespace:
Rebex.Net
Assembly:
Rebex.Imap (in Rebex.Imap.dll)
Syntax
Visual Basic |
---|
Public Function GetMessageInfo ( _ sequenceNumber As Integer, _ fields As ImapListFields _ ) As ImapMessageInfo |
C# |
---|
public ImapMessageInfo GetMessageInfo( int sequenceNumber, ImapListFields fields ) |
Parameters
- sequenceNumber
- Type: System..::..Int32
Message sequence number.
- fields
- Type: Rebex.Net..::..ImapListFields
Specifies the scope of information to determine about the message.
Return Value
A message info.Remarks
Uses IMAP FETCH command to retrieve the message.
By default, this method marks the message as read. To prevent this behavior, set the UsePeekForGetMessage to true.