Outlook) (SharingItem 物件
表示 [收件匣] 資料夾中的共用郵件。
註解
使用NameSpace物件的CreateSharingItem方法來建立代表新共用要求或共用邀請的SharingItem物件。
使用 Item (索引) ,其中 index 是共用訊息的索引編號,或是用來比對訊息預設屬性的值,可從 [收件匣] 資料夾傳回單一 SharingItem 物件。
範例
下列 Visual Basic for Applications (VBA) 範例會建立並顯示 [工作] 資料夾的新共用邀請。
Public Sub CreateTasksSharingItem()
On Error GoTo ErrRoutine
Dim mapiNamespace As Outlook.NameSpace
Set mapiNamespace = Outlook.Application.GetNamespace("MAPI")
Dim tasksFolder As Outlook.Folder
Set tasksFolder = mapiNamespace.GetDefaultFolder(Outlook.olFolderTasks)
Dim invitation As Outlook.SharingItem
Set invitation = appNamespace.CreateSharingItem(tasksFolder)
invitation.Display
EndRoutine:
Exit Sub
ErrRoutine:
MsgBox Err.Description, vbOKOnly, Err.Number & " - " & Err.Source
Resume EndRoutine
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
方法
- AddBusinessCard
- Allow
- ClearConversationIndex
- ClearTaskFlag
- Close
- Copy
- Delete
- Deny
- Display
- Forward
- GetConversation
- MarkAsTask
- Move
- OpenSharedFolder
- PrintOut
- Reply
- ReplyAll
- Save
- SaveAs
- Send
- ShowCategoriesDialog
屬性
- Actions
- AllowWriteAccess
- AlternateRecipientAllowed
- Application
- Attachments
- AutoForwarded
- BCC
- BillingInformation
- Body
- BodyFormat
- Categories
- CC
- Class
- Companies
- Conflicts
- ConversationID
- ConversationIndex
- ConversationTopic
- CreationTime
- DeferredDeliveryTime
- DeleteAfterSubmit
- DownloadState
- EntryID
- ExpiryTime
- FlagRequest
- FormDescription
- GetInspector
- HTMLBody
- Importance
- InternetCodepage
- IsConflict
- IsMarkedAsTask
- ItemProperties
- LastModificationTime
- MarkForDownload
- MessageClass
- Mileage
- NoAging
- OriginatorDeliveryReportRequested
- OutlookInternalVersion
- OutlookVersion
- Parent
- Permission
- PermissionService
- PermissionTemplateGuid
- PropertyAccessor
- ReadReceiptRequested
- ReceivedByEntryID
- ReceivedByName
- ReceivedOnBehalfOfEntryID
- ReceivedOnBehalfOfName
- ReceivedTime
- RecipientReassignmentProhibited
- Recipients
- ReminderOverrideDefault
- ReminderPlaySound
- ReminderSet
- ReminderSoundFile
- ReminderTime
- RemoteID
- RemoteName
- RemotePath
- RemoteStatus
- ReplyRecipientNames
- ReplyRecipients
- RequestedFolder
- RetentionExpirationDate
- RetentionPolicyName
- RTFBody
- Saved
- SaveSentMessageFolder
- SenderEmailAddress
- SenderEmailType
- SenderName
- SendUsingAccount
- Sensitivity
- Sent
- SentOn
- SentOnBehalfOfName
- Session
- SharingProvider
- SharingProviderGuid
- Size
- Subject
- Submitted
- TaskCompletedDate
- TaskDueDate
- TaskStartDate
- TaskSubject
- To
- ToDoTaskOrdinal
- Type
- UnRead
- UserProperties
另請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。