IObjectSecurity Method: GetAccessList

GetAccessList()As IAccessList;

Description
Returns the security access control list, also known as DACL. This is an IAccessList interface initialized to current object's DACL.

Example

Dim ObjSec  As IObjectSecurity
Dim AccessListObj As IAccessList
Dim strFilePath  As String
strFilePath = "d:\test.txt"
Set ObjSec = CreateObject("DirectScript.ObjectSecurity")
'Attach to d:\test.txt
ObjSec.AttachFile strFilePath
'Get the Access Control List of the object
Set AccessListObj = ObjSec.GetAccessList()

 

See Also