This documentation is archived and is not being maintained.

_TaskRequestItem.GetAssociatedTask Method

Returns a TaskItem object that represents the requested task.

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

[DispIdAttribute()]
TaskItem GetAssociatedTask(
	bool AddToTaskList
)

Parameters

AddToTaskList
Type: System.Boolean

True if the task is added to the default Tasks folder.

Return Value

Type: Microsoft.Office.Interop.Outlook.TaskItem
A TaskItem object that represents the requested task.

The GetAssociatedTask method will not work unless the TaskItem is processed before the method is called. To do so, call the Display method before calling GetAssociatedTask.

Show: