_MailItem.TaskSubject Property

Returns or sets a String (string in C#) value that represents the subject of the task for the MailItem object. Read/write.

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

Syntax

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

value = instance.TaskSubject

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

Property Value

Type: System.String

Remarks

This property returns the value of the Subject property if the IsMarkedAsTask property is set to False.

See Also

Reference

_MailItem Interface

_MailItem Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Filter and Display Computed Properties When Enumerating Items in a Folder