Attachment CollectionRemove Method
Remove an attachment.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
if the attachment was removed; otherwise, .
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public bool Remove(
MimeEntity attachment
)Parameters
- attachment MimeEntity
- The attachment.
Return Value
Booleanif the attachment was removed; otherwise, .
Implements
ICollectionTRemove(T)Remarks
Removes the specified attachment.
Exceptions
| ArgumentNullException | attachment is . |