MultipartContains Method
Check if the Multipart contains the specified entity.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
if the specified entity exists; otherwise, .
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public bool Contains(
MimeEntity entity
)Parameters
- entity MimeEntity
- The entity to check for.
Return Value
Booleanif the specified entity exists; otherwise, .
Implements
ICollectionTContains(T)Remarks
Determines whether the multipart contains the specified entity.
Exceptions
| ArgumentNullException | entity is . |
| ObjectDisposedException | The Multipart has been disposed. |