Click or drag to resize
MimeKit

AttachmentCollectionRemove Method

Remove an attachment.

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

Parameters

attachment  MimeEntity
The attachment.

Return Value

Boolean
if the attachment was removed; otherwise, .

Implements

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