편집

다음을 통해 공유


TaskRequestItem object (Outlook)

Represents a change to the recipient's Tasks list initiated by another party or as a result of a group tasking.

Remarks

Unlike other Microsoft Outlook objects, you cannot create this object. When the sender applies the Assign and Send methods to a TaskItem object to assign (delegate) the associated task to another user, the TaskRequestItem object is created when the item is received in the recipient's Inbox.

Use the GetAssociatedTask method to return the TaskItem object, and work directly with the TaskItem object to respond to the request.

Example

The following Visual Basic for Applications (VBA) example creates a simple task, assigns it to another user, and sends it. When the task request arrives in the recipient's Inbox, it is received as a 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

Events

Name
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

Methods

Name
Close
Copy
Delete
Display
GetAssociatedTask
GetConversation
Move
PrintOut
Save
SaveAs
ShowCategoriesDialog

Properties

Name
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
Size
Subject
UnRead
UserProperties

See also

Outlook Object Model Reference

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.