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
Contains Method
Check if the collection contains the specified attachment.
Namespace:
MimeKit
Assembly:
MimeKit (in MimeKit.dll) Version: 4.10.0
Syntax
C#
Copy
public
bool
Contains
(
MimeEntity
attachment
)
Parameters
attachment
MimeEntity
The attachment.
Return Value
Boolean
if the specified attachment exists; otherwise,
.
Implements
ICollection
T
Contains(T)
Exceptions
Exception
Condition
ArgumentNullException
attachment
is
.
Remarks
Determines whether the collection contains the specified attachment.
See Also
Reference
AttachmentCollection Class
MimeKit Namespace
Copyright © 2013-2025 Jeffrey Stedfast
Send comments on this topic to
Jeffrey Stedfast