PowerTCP Mail for .NET
Subscribe Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > Mailbox Class : Subscribe Method




Attempts to subscribe the mailbox.

Syntax

Visual Basic (Declaration) 
Public Function Subscribe() As ImapResponse
Visual Basic (Usage)Copy Code
Dim instance As Mailbox
Dim value As ImapResponse
 
value = instance.Subscribe()
C# 
public ImapResponse Subscribe()
Managed Extensions for C++ 
public: ImapResponse* Subscribe(); 
C++/CLI 
public:
ImapResponse^ Subscribe(); 

Return Value

An ImapResponse object encapsulating the response from the server.

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 Mailbox.Subscribe method attempts to subscribe the mailbox. Use of this method causes the IMAP SUBSCRIBE command to be sent to the server to subscribe the mailbox.

To get a list of subscribed mailboxes use

Imap.List("", "%", false);

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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