Permission Object Members
The Permission property of the Document object in Microsoft Office Word 2003 or Microsoft Office Word 2007, a Workbook object in Microsoft Office Excel 2003 or Microsoft Office Excel 2007, and a Presentation object in Microsoft Office PowerPoint 2003 or Microsoft Office PowerPoint 2007 returns a Permission object.
Methods
Name | Description | |
---|---|---|
Add | Creates a set of permissions on the active document for the specified user. Returns a UserPermission object. | |
ApplyPolicy | Applies the specified permission policy to the active document. | |
RemoveAll | Removes all UserPermission objects from the Permission collection of the active document. |
Properties
Name | Description | |
---|---|---|
Application | Gets an Application object that represents the container application for the Permission object (you can use this property with an Automation object to return that object's container application). Read-only. | |
Count | Gets a Long indicating the number of items in the Permission object. Read-only. | |
Creator | Gets a 32-bit integer that indicates the application in which the Permission object was created. Read-only. | |
DocumentAuthor | Gets or sets the name in e-mail form of the author of the active document. Read/write. | |
Enabled | Gets or sets a Boolean value that indicates whether permissions are enabled on the active document. Read/write. | |
EnableTrustedBrowser | Gets or sets a value indicating whether to enable a browser from a trusted source. Read/write. | |
Item | Gets a UserPermission object that is a member of the Permission collection. The UserPermission object associates a set of permissions on the active document with a single user and an optional expiration date. Read-only. | |
Parent | Gets the Parent object for the Permission object. Read-only. | |
PermissionFromPolicy | Gets a Boolean value that indicates whether a permission policy has been applied to the active document. Read-only. | |
PolicyDescription | Gets the description of the permissions policy applied to the active document. Read-only. | |
PolicyName | Gets the name of the permissions policy applied to the active document. Read-only. | |
RequestPermissionURL | Gets or sets the file or Web site URL to visit or the e-mail address to contact for users who need additional permissions on the active document. Read/write. | |
StoreLicenses | Gets or sets a Boolean value that indicates whether the user's license to view the active document should be cached to allow offline viewing when the user cannot connect to a rights management server. Read/write. |