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




obj
The object representing the attachment to remove.
Removes the specified attachment.

Syntax

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

Parameters

obj
The object representing the attachment to remove.

Remarks

This method removes the specified attachment from whatever collection it resides in (since the Attachments collection is actually a combination of attachments contained in MessageStream.NonMime.Attachments, MessageStream.Parts.Attachments, and recursive attachments in MessageStream.Parts.Complex). For example, if an AttachmentStream was passed into this method (representing a non-MIME attachment) any attachment in MessageStream.NonMime.Attachments which was equal to this object would be removed.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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