_MailItem.Subject Property

Returns or sets a String (string in C#) indicating the subject for the Outlook item. Read/write.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Property Subject As String
    Get
    Set
'Usage
Dim instance As _MailItem
Dim value As String

value = instance.Subject

instance.Subject = value
[DispIdAttribute()]
string Subject { get; set; }

Property Value

Type: System.String

Remarks

This property corresponds to the MAPI property PidTagSubject. The Subject property is the default property for Outlook items.

See Also

Reference

_MailItem Interface

_MailItem Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Send an E-Mail Given the SMTP Address of an Account

How to: Get and Display Items in a Conversation

How to: Create a Mail Item by Using a Message Template

How to: Add Voting Options to a Mail Item

How to: Specify Different Recipient Types for a Mail Item

How to: Enumerate Hidden Items in a Folder