TaskRequestDeclineItem.GetAssociatedTask Method (Outlook)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns a TaskItem object that represents the requested task.

expression .GetAssociatedTask(AddToTaskList)

expression A variable that represents a TaskRequestDeclineItem object.

Parameters

Name

Required/Optional

Data Type

Description

AddToTaskList

Required

Boolean

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

Return Value

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: