SharingItem.PermissionTemplateGuid property (Outlook)
Returns or sets a String that represents the GUID of the template file to be applied to the SharingItem in order to specify Information Rights Management (IRM) permissions. Read/write.
Syntax
expression. PermissionTemplateGuid
expression A variable that represents a SharingItem object.
Remarks
This property complements the IRM properties on a SharingItem object; that is, the Permission property and PermissionService properties.
The PermissionTemplateGuid property should be synchronized with the Permission 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 OlPermission.olPermissionTemplate.
An empty string value for the PermissionTemplateGuid property means there is no permission template file specified for the SharingItem. This occurs when no IRM has been set up (in which case the Permission property is OlPermission.olUnrestricted), or the restriction is not to forward the SharingItem (in which case the Permission property is OlPermission.olDoNotForward).
If you attempt to set the PermissionTemplateGuid property for a received message (that is, the Sent property of the SharingItem is True), Microsoft Outlook returns an error.
See also
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.