| TREEGEN COMPONENT 4.01 |
| ACL
Object Last modified: April 6,1999 © 2000 Advantys. All rights reserved. |
The Count property returns the number of elements in the collection.
Syntax
.CountReturn Values
Returns an Long value which is the number of elements in the collection.Examples
<%
Response.Write("NbACEs=" & MyTree.ACL.Count)
%>
The Item method access to a ACE in a collection. This is the default method of the collection object.
Syntax
.Item(key)Parameters
A Variant value which is the index of the ACE.Return Values
Returns a ACE object of the collection corresponding to the key.Examples
<%
for intI=1 to MyTree.ACL.count
Response.Write("Trustee=" & MyTree.ACL.Item(intI).Trustee)
next
%>
The Add method adds a new ACE in the collection.
Syntax
.Add(Trustee, Domain, AccessMask, AceType)
Examples
<%
MyTree.ACL.Add("MyTrustee", "MyDomain", TG_GENERIC_READ, TG_ACCESS_ALLOWED_ACE)
%>
The Remove method removes an ACE from a collection.
Syntax
.Remove(Index)Parameters
Index is a variant valueExamples
<%
MyTree.ACL.Remove(2)
%>
© 2000 Advantys. All rights reserved.