ShareItem 对象 (Outlook)
代表"收件箱"文件夹中的共享邮件。
备注
使用 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
- 转发
- Open
- PropertyChange
- 读取
- ReadComplete
- Reply
- ReplyAll
- Send
- Unload
- Write
方法
- AddBusinessCard
- 允许
- ClearConversationIndex
- ClearTaskFlag
- Close
- Copy
- 删除
- 拒绝
- Display
- 转发
- GetConversation
- MarkAsTask
- Move
- OpenSharedFolder
- PrintOut
- Reply
- ReplyAll
- Save
- SaveAs
- Send
- ShowCategoriesDialog
属性
- Actions
- AllowWriteAccess
- AlternateRecipientAllowed
- 应用程序
- 附件
- AutoForwarded
- BCC
- BillingInformation
- Body
- BodyFormat
- 类别
- CC
- 类
- 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
- 权限
- PermissionService
- PermissionTemplateGuid
- PropertyAccessor
- ReadReceiptRequested
- ReceivedByEntryID
- ReceivedByName
- ReceivedOnBehalfOfEntryID
- ReceivedOnBehalfOfName
- ReceivedTime
- RecipientReassignmentProhibited
- 收件人
- 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
- 类型
- UnRead
- UserProperties
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。