Outlook) (TaskRequestItem 物件

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

註解

不同于其他 Microsoft Outlook 物件,您無法建立此物件。 當寄件者將 Assign 和Send 方法套用至 TaskItem 物件,以將 (委派) 相關聯的工作指派給另一個使用者時,會在收件者的收件匣中收到專案時建立 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 支援與意見反應