Attachment CollectionContains Method
Check if the collection contains the specified attachment.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
if the specified attachment exists; otherwise, .
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public bool Contains(
MimeEntity attachment
)Parameters
- attachment MimeEntity
- The attachment.
Return Value
Booleanif the specified attachment exists; otherwise, .
Implements
ICollectionTContains(T)Remarks
Determines whether the collection contains the specified attachment.
Exceptions
| ArgumentNullException | attachment is . |