MultipartClear(Boolean) Method
Clear a multipart.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public void Clear(
bool dispose
)Parameters
- dispose Boolean
- if all the child entities of the multipart should be disposed; otherwise, .
Remarks
Removes all the entities within the multipart, optionally disposing them in the process.
Exceptions
| ObjectDisposedException | The Multipart has been disposed. |