PowerTCP Mail for .NET
Get() Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > ImapMessage Class > Get Method : Get() Method




Gets the entire message.

Syntax

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.

Exceptions

ExceptionDescription
Dart.PowerTCP.Mail.ProtocolExceptionBad IMAP protocol response received from server.
System.Net.Sockets.SocketExceptionThe requested address is not valid in its context.

Remarks

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.