Property Name
AccessPermissions
Property Type
String
Description
Gets and sets permissions for the current ACE (Access Control
Entry).
Note: See Access Permissions for a list of possible access permissions.
Remarks
For some objects like Printers, permissions consist of more than
one ACE. This implies that a single ACE might not mean anything in
itself. An example of this is the Manage Documents permissions
("M") for Printers.
Example
Dim ObjSec As IObjectSecurity
Dim ACL As IAccessList
Dim ACE As IAccessEntry
Set ObjSec = CreateObject("DirectScript.ObjectSecurity")
ObjSec.AttachFile "FileName"
Set ACL = ObjSec.GetAccessList
For Each ACE In ACL
Debug.Print ACE.AccessPermissions
Next
See Also