Partager via


_TaskRequestAcceptItem.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)

Syntax

'Declaration
<DispIdAttribute()> _
Function GetAssociatedTask ( _
    AddToTaskList As Boolean _
) As TaskItem
'Usage
Dim instance As _TaskRequestAcceptItem
Dim AddToTaskList As Boolean
Dim returnValue As TaskItem

returnValue = instance.GetAssociatedTask(AddToTaskList)
[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.

Remarks

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.

See Also

Reference

_TaskRequestAcceptItem Interface

_TaskRequestAcceptItem Members

Microsoft.Office.Interop.Outlook Namespace