共用方式為


TaskRequestItem 物件 (Outlook)

代表對收件者工作清單的變更,此變更是由其他人所起始,或是群組工作所產生的結果。

註解

與其他 Microsoft Outlook 物件不同,你無法建立這個物件。 當發送者對 TaskItem 物件套用 AssignSend 方法,將該任務 () 委託給另一使用者時,當該物件被收件者收件匣時,TaskRequestItem 物件就會被建立。

使用 GetAssociatedTask 方法回傳 TaskItem 物件,並直接與 TaskItem 物件互動以回應請求。

範例

下列 Visual Basic for Applications (VBA) 範例會建立一個簡單的工作,將工作指定給另一位使用者,然後傳送工作。 當工作要求送達收件者的 [收件匣] 時,會將它當做 TaskRequestItem 物件接收。

Sub SendTask() 
 
 Dim myItem As Outlook.TaskItem 
 
 Dim myDelegate As Outlook.Recipient 
 
 
 
 Set myItem = Application.CreateItem(olTaskItem) 
 
 myItem.Assign 
 
 Set myDelegate = myItem.Recipients.Add("Jeff Smith") 
 
 myItem.Subject = "Prepare Agenda For Meeting" 
 
 myItem.DueDate = #9/20/97# 
 
 myItem.Send 
 
End Sub

事件

名稱
AfterWrite
AttachmentAdd
AttachmentRead
AttachmentRemove
BeforeAttachmentAdd
BeforeAttachmentPreview
BeforeAttachmentRead
BeforeAttachmentSave
BeforeAttachmentWriteToTempFile
BeforeAutoSave
BeforeCheckNames
BeforeDelete
BeforeRead
Close
CustomAction
CustomPropertyChange
Forward
Open
PropertyChange
Read
ReadComplete
Reply
ReplyAll
Send
Unload
Write

方法

名稱
Close
Copy
Delete
Display
GetAssociatedTask
GetConversation
Move
PrintOut
Save
SaveAs
ShowCategoriesDialog

屬性

名稱
Actions
Application
Attachments
AutoResolvedWinner
BillingInformation
Body
Categories
Class
Companies
Conflicts
ConversationID
ConversationIndex
ConversationTopic
CreationTime
DownloadState
EntryID
FormDescription
GetInspector
Importance
IsConflict
ItemProperties
LastModificationTime
MarkForDownload
MessageClass
Mileage
NoAging
OutlookInternalVersion
OutlookVersion
Parent
PropertyAccessor
RTFBody
Saved
Sensitivity
Session
大小
Subject
UnRead
UserProperties

另請參閱

Outlook 物件模型參考

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應