Mime MessageDispose(Boolean) Method
Releases the unmanaged resources used by the MimeMessage and
optionally releases the managed resources.
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#
protected virtual void Dispose(
bool disposing
)Parameters
- disposing Boolean
- to release both managed and unmanaged resources; to release only the unmanaged resources.
Remarks
Releases resources owned directly by this message. The body and its structural descendants are
disposed by Dispose before this method is called with disposing
set to , even if their cleanup fails. Overrides should release only their own
resources and call the base implementation, not dispose the body or mutate the MIME tree.