MailMessageEventArgs(MailMessage) Constructor

Definition

Creates a new instance of the MailMessageEventArgs class.

C#
public MailMessageEventArgs(System.Net.Mail.MailMessage message);

Parameters

message
MailMessage

The MailMessage containing the message.

Remarks

Create a new instance of the MailMessageEventArgs class when you want to pass a MailMessage object to an event handler that might modify the message before sending it.

Applies to

Produkt Verzie
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also