Click or drag to resize
MimeKit

AttachmentCollectionContains Method

Check if the collection contains the specified attachment.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
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

ICollectionTContains(T)
Exceptions
ExceptionCondition
ArgumentNullExceptionattachment is null.
Remarks
Determines whether or not the collection contains the specified attachment.
See Also