Compartilhar via


_SharingItem.Permission Property

Returns or sets an OlPermission constant that determines the permissions the recipients will have on the SharingItem. Read/write.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Property Permission As OlPermission
    Get
    Set
'Usage
Dim instance As _SharingItem
Dim value As OlPermission

value = instance.Permission

instance.Permission = value
[DispIdAttribute()]
OlPermission Permission { get; set; }

Property Value

Type: Microsoft.Office.Interop.Outlook.OlPermission

Remarks

The Permission property should be synchronized with the PermissionTemplateGuid property to accurately reflect the permission status of the SharingItem. Setting the PermissionTemplateGuid property to a valid GUID should also incur setting the Permission property to olPermissionTemplate.

When no Information Rights Management (IRM) has been set up (in which case the Permission property is olUnrestricted), or the restriction is not to forward the SharingItem (in which case the Permission property is olDoNotForward), the value of the PermissionTemplateGuid property should be an empty string.

Although you can view content that is protected by IRM on any computer running the 2007 Microsoft Office system or a later version, you must have Microsoft Office Professional Edition 2003, Microsoft Office Outlook 2007, or a later version of Outlook to create or send an e-mail that is protected by IRM.

See Also

Reference

_SharingItem Interface

_SharingItem Members

Microsoft.Office.Interop.Outlook Namespace