| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As Attachments Dim obj As Object instance.Remove(obj) | |
Parameters
- obj
- The object representing the attachment to remove.
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.
Target Platforms: Microsoft .NET Framework 2.0