| Visual Basic (Declaration) | |
|---|---|
Public Overloads Function Get() As ImapMessage() | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As Mailbox Dim value() As ImapMessage value = instance.Get() | |
| C# | |
|---|---|
public ImapMessage[] Get() | |
| Managed Extensions for C++ | |
|---|---|
public: ImapMessage*[]* Get(); | |
| C++/CLI | |
|---|---|
public: array<ImapMessage^>^ Get(); | |
Return Value
An array of ImapMessage objects, representing all messages retrieved.| Exception | Description |
|---|---|
| Dart.PowerTCP.Mail.ProtocolException | Bad IMAP protocol response received from server. |
| System.Net.Sockets.SocketException | The requested address is not valid in its context. |
| System.ArgumentOutOfRangeException | index was out of range |
| System.IndexOutOfRangeException | index was outside bounds of array |
| Dart.PowerTCP.Mail.InvalidParameterTypeException | Collection contains instances of wrong type of object |
The Mailbox.Get method retrieves in full the messages contained in this mailbox and uses the data to populate the Mailbox.Messages collection and its contents.
This method uses the IMAP FETCH command to retrieve message content. The command uses the UIDs of the messages (ImapMessage.Uid) to retrieve content.
This method is useful for bulk operations. If you would like to retrieve only a single message, use the ImapMessage.Get method of the ImapMessage object.
Target Platforms: Microsoft .NET Framework 2.0