AttachmentCollectionClear(Boolean) Method

Clear the attachment collection.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public void Clear(
	bool dispose
)

Parameters

dispose  Boolean
if all the attachments should be disposed; otherwise, .

Remarks

Removes all attachments from the collection, optionally disposing them in the process.

See Also