Outlook) (TaskItem 物件

代表 [工作] 資料夾中的工作,即在指定時間內所指定、委託或自願接受而必須執行的工作。

註解

使用 CreateItem 方法可建立代表新工作的 TaskItem 物件。

使用 Items (index) ,其中 index 是任務的索引編號,或是用來比對任務預設屬性的值,可從 Tasks 資料夾傳回單一 TaskItem 物件。

範例

下列 Visual Basic for Applications (VBA) 範例會傳回新的工作。

Set myItem = Application.CreateItem(olTaskItem)

事件

名稱
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

方法

名稱
Assign
CancelResponseState
ClearRecurrencePattern
Close
Copy
Delete
Display
GetConversation
GetRecurrencePattern
MarkComplete
Move
PrintOut
Respond
Save
SaveAs
Send
ShowCategoriesDialog
SkipRecurrence
StatusReport

屬性

名稱
Actions
ActualWork
Application
Attachments
AutoResolvedWinner
BillingInformation
Body
CardData
Categories
Class
Companies
Complete
Conflicts
ContactNames
ConversationID
ConversationIndex
ConversationTopic
CreationTime
DateCompleted
DelegationState
Delegator
DownloadState
DueDate
EntryID
FormDescription
GetInspector
Importance
InternetCodepage
IsConflict
IsRecurring
ItemProperties
LastModificationTime
MarkForDownload
MessageClass
Mileage
NoAging
Ordinal
OutlookInternalVersion
OutlookVersion
Owner
Ownership
Parent
PercentComplete
PropertyAccessor
Recipients
ReminderOverrideDefault
ReminderPlaySound
ReminderSet
ReminderSoundFile
ReminderTime
ResponseState
Role
RTFBody
Saved
SchedulePlusPriority
SendUsingAccount
Sensitivity
Session
Size
StartDate
Status
StatusOnCompletionRecipients
StatusUpdateRecipients
Subject
TeamTask
ToDoTaskOrdinal
TotalWork
UnRead
UserProperties

另請參閱

Outlook 物件模型參考TaskItem 物件成員

支援和意見反應

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