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.7.1
Syntax
C#
Copy
public
bool
Contains
(
MimeEntity
attachment
)
Parameters
attachment
MimeEntity
The attachment.
Return Value
Boolean
Field Value
Boolean
true if the specified attachment exists; otherwise
Field Value
Boolean
false.
Implements
ICollection
T
Contains(T)
Exceptions
Exception
Condition
ArgumentNullException
attachment
is
null
.
Remarks
Determines whether or not the collection contains the specified attachment.
See Also
Reference
AttachmentCollection Class
MimeKit Namespace
Copyright © 2013-2023 Jeffrey Stedfast
Send comments on this topic to
Jeffrey Stedfast