MailMessage.Subject Property

Definition

Gets or sets the subject line of the email message. Recommended alternative: System.Net.Mail.

public:
 property System::String ^ Subject { System::String ^ get(); void set(System::String ^ value); };
public string Subject { get; set; }
member this.Subject : string with get, set
Public Property Subject As String

Property Value

The subject line of the email message.

Applies to