IAccessList Property: Count

Property Name
Count

Property Type
Long

Description
Returns the number of ACEs (Access Control Entries) in the current ACL (Access Control List).
This property is read-only.

Example

Dim ObjSec As IObjectSecurity
Dim AccessList As IAccessList
Set ObjSec = CreateObject("DirectScript.ObjectSecurity")
ObjSec.AttachFile "FileName"
Set AccessList = ObjSec.GetAccessList
Debug.Print AccessList.Count

 

See Also