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




value
The object representing the mailbox to remove.
Removes a mailbox from the server.

Syntax

Visual Basic (Declaration) 
Public Overloads Overrides Sub Remove( _
   ByVal value As Object _
) 
Visual Basic (Usage)Copy Code
Dim instance As MailboxCollection
Dim value As Object
 
instance.Remove(value)
C# 
public override void Remove( 
   object value
)
Managed Extensions for C++ 
public: void Remove( 
   Object* value
) override 
C++/CLI 
public:
void Remove( 
   Object^ value
) override 

Parameters

value
The object representing the mailbox to remove.

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 MailboxCollection.Remove method removes the mailbox which is equal to value from the server by sending the IMAP DELETE command.

After calling this method, the MailboxCollection will be automatically updated to reflect the current state of the collection. There is no need to explicitly call MailboxCollection.Refresh. In addition, the object in the coll

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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