MailMessage.Subject Property

 

Gets or sets the subject line for this e-mail message.

Namespace:   System.Net.Mail
Assembly:  System (in System.dll)

Public Property Subject As String

Property Value

Type: System.String

A String that contains the subject content.

Specify the encoding used for the subject by using the SubjectEncoding property.

The following code example demonstrates setting the Subject property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: