Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Representa un mensaje de uso compartido en una carpeta Bandeja de entrada.
Comentarios
Use el método CreateSharingItem del objeto NameSpace para crear un objeto SharingItem que represente una nueva solicitud de uso compartido o una invitación de uso compartido.
Use Elemento (índice), donde índice es el número de índice de un mensaje que comparte o un valor que se usa para coincidir con la propiedad predeterminada de un mensaje, para devolver un único objeto SharingItem desde una carpeta de la Bandeja de entrada.
Ejemplo
En el ejemplo siguiente de Visual Basic para Aplicaciones (VBA) se crea y se muestra una nueva invitación de uso compartido para la carpeta Tasks (Tareas).
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
Eventos
- AfterWrite
- AttachmentAdd
- AttachmentRead
- AttachmentRemove
- BeforeAttachmentAdd
- BeforeAttachmentPreview
- BeforeAttachmentRead
- BeforeAttachmentSave
- BeforeAttachmentWriteToTempFile
- BeforeAutoSave
- BeforeCheckNames
- BeforeDelete
- BeforeRead
- Close
- CustomAction
- CustomPropertyChange
- Reenviar
- Open
- PropertyChange
- Lectura
- ReadComplete
- Reply
- ReplyAll
- Send
- Unload
- Write
Métodos
- AddBusinessCard
- Permitir
- ClearConversationIndex
- ClearTaskFlag
- Close
- Copy
- Delete
- Denegar
- Display
- Reenviar
- GetConversation
- MarkAsTask
- Move
- OpenSharedFolder
- PrintOut
- Reply
- ReplyAll
- Save
- SaveAs
- Send
- ShowCategoriesDialog
Propiedades
- Actions
- AllowWriteAccess
- AlternateRecipientAllowed
- Application
- Archivos adjuntos
- AutoForwarded
- BCC
- BillingInformation
- Body
- BodyFormat
- Categorías
- 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
- Permiso
- PermissionService
- PermissionTemplateGuid
- PropertyAccessor
- ReadReceiptRequested
- ReceivedByEntryID
- ReceivedByName
- ReceivedOnBehalfOfEntryID
- ReceivedOnBehalfOfName
- ReceivedTime
- RecipientReassignmentProhibited
- Destinatarios
- 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
- Tipo
- UnRead
- UserProperties
Vea también
Soporte técnico y comentarios
¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.