
| Visual Basic (Declaration) | |
|---|---|
Public Class SmtpEventArgs Inherits System.EventArgs | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As SmtpEventArgs | |
| C# | |
|---|---|
public class SmtpEventArgs : System.EventArgs | |
| Managed Extensions for C++ | |
|---|---|
public __gc class SmtpEventArgs : public System.EventArgs | |
| C++/CLI | |
|---|---|
public ref class SmtpEventArgs : public System.EventArgs | |
An SmtpEventArgs object is passed into the Smtp.EndSend event after an email message has been sent asynchronously, containing data about the sent message. This data will include a SmtpResult object, containing the result of the SMTP operation.
If your code causes an exception, it would be returned to the handling event without you seeing it. To preclude such a condition, you should ALWAYS use a try/catch block around your event-handling code.
For more information on implementing and handling events using PowerTCP.NET, see Events in PowerTCP.
System.Object
System.EventArgs
Dart.PowerTCP.Mail.SmtpEventArgs
Target Platforms: Microsoft .NET Framework 2.0