TaskRequestDeclineItem 方法(Outlook)TaskRequestDeclineItem.GetAssociatedTask method (Outlook)

返回代表所请求的任务的 TaskItem 对象。Returns a TaskItem object that represents the requested task.

语法Syntax

expressionexpression. GetAssociatedTask( _AddToTaskList_ )GetAssociatedTask( _AddToTaskList_ )

_表达式_一个代表TaskRequestDeclineItem对象的变量。expression A variable that represents a TaskRequestDeclineItem object.

参数Parameters

名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
AddToTaskListAddToTaskList 必需Required BooleanBoolean 如此 如果将任务添加到默认的 任务文件夹。True if the task is added to the default Tasks folder.

返回值Return value

一个代表所请求的任务的TaskItem对象。A TaskItem object that represents the requested task.

备注Remarks

如果没有在调用 GetAssociatedTask 方法之前处理 TaskItem,则该方法无效。The GetAssociatedTask method will not work unless the TaskItem is processed before the method is called. 若要执行此操作,请在调用GetAssociatedTask之前调用**Display** 方法。To do so, call the Display method before calling GetAssociatedTask.

另请参阅See also

TaskRequestDeclineItem 对象TaskRequestDeclineItem Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.