System.Net.Mail.SmtpClient.SendAsyncCancel Method

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

Syntax

public void SendAsyncCancel ()

Remarks

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.

Requirements

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