System.Net.Mail.SmtpClient.SendAsyncCancel Method

Cancels an asynchronous operation to send an e-mail message.


public void SendAsyncCancel ()


Use the SmtpClient.SendAsyncCancel method to cancel a pending erload:System.Net.Mail.SmtpClient.SendAsync operation. If there is mail waiting to be sent, this method releases resources used to store the mail. If there is no mail waiting to be sent, this method does nothing.


Namespace: System.Net.Mail
Assembly: System (in System.dll)
Assembly Versions:,
Since: .NET 2.0