Click or drag to resize
MimeKit

AttachmentCollectionRemove Method

Remove an attachment.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public bool Remove(
	MimeEntity attachment
)

Parameters

attachment  MimeEntity
The attachment.

Return Value

Boolean

Field Value

Boolean
true if the attachment was removed; otherwise

Field Value

Boolean
false.

Implements

ICollectionTRemove(T)
Exceptions
ExceptionCondition
ArgumentNullExceptionattachment is null.
Remarks
Removes the specified attachment.
See Also