AttachmentCollectionContains Method

Check if the collection contains the specified attachment.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public bool Contains(
	MimeEntity attachment
)

Parameters

attachment  MimeEntity
The attachment.

Return Value

Boolean
if the specified attachment exists; otherwise, .

Implements

ICollectionTContains(T)

Remarks

Determines whether the collection contains the specified attachment.

Exceptions

ArgumentNullException attachment is .

See Also