| Visual Basic (Declaration) | |
|---|---|
Public Overloads Function Get() As ImapMessage | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As ImapMessage Dim value As ImapMessage value = instance.Get() | |
| C# | |
|---|---|
public ImapMessage Get() | |
| Managed Extensions for C++ | |
|---|---|
public: ImapMessage* Get(); | |
| C++/CLI | |
|---|---|
public: ImapMessage^ Get(); | |
Return Value
An ImapMessage object representing the retrieved message.| 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. |
The ImapMessage.Get method gets the full message, including flags, internal date, and UID. The message itself is represented by a MessageStream object and accessible as ImapMessage.Message.
For bulk operations, use Mailbox.Get which gets all messages in a mailbox.
Target Platforms: Microsoft .NET Framework 2.0