MailKit Documentation
MailKit Documentation
API Reference
MimeKit
AttachmentCollection Class
AttachmentCollection Methods
Add Method
AddAsync Method
Clear Method
Contains Method
CopyTo Method
GetEnumerator Method
IndexOf Method
Insert Method
Remove Method
RemoveAt Method
Attachment
Collection
Remove Method
Remove an attachment.
Namespace:
MimeKit
Assembly:
MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
Copy
public
bool
Remove
(
MimeEntity
attachment
)
Parameters
attachment
MimeEntity
The attachment.
Return Value
Boolean
Field Value
Boolean
true if the attachment was removed; otherwise
Field Value
Boolean
false.
Implements
ICollection
T
Remove(T)
Exceptions
Exception
Condition
ArgumentNullException
attachment
is
null
.
Remarks
Removes the specified attachment.
See Also
Reference
AttachmentCollection Class
MimeKit Namespace
Copyright © 2013-2023 Jeffrey Stedfast
Send comments on this topic to
Jeffrey Stedfast