Click or drag to resize
MimeKit

MultipartContains Method

Check if the Multipart contains the specified entity.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public bool Contains(
	MimeEntity entity
)

Parameters

entity  MimeEntity
The entity to check for.

Return Value

Boolean

Field Value

Boolean
true if the specified entity exists; otherwise

Field Value

Boolean
false.

Implements

ICollectionTContains(T)
Exceptions
ExceptionCondition
ArgumentNullExceptionentity is null.
ObjectDisposedException The Multipart has been disposed.
Remarks
Determines whether or not the multipart contains the specified entity.
See Also