Mail ServiceDispose Async Core Method
Asynchronously releases the managed resources used by the MailService.
Definition
Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
A task that represents the asynchronous dispose operation.
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
protected virtual ValueTask DisposeAsyncCore()Return Value
ValueTaskA task that represents the asynchronous dispose operation.
Remarks
Asynchronously releases the managed resources used by the MailService.
Subclasses that need to release resources asynchronously should override this method. The default implementation calls Dispose(Boolean) with a value of .