Remove(Index: Integer): Boolean;
Index. Index of additional security parameter.
The Remove method removes an additional security parameter of the object and returns whether removal succeeded.
The method returns True if removal of additional security parameter succeeded.
Executing the example requires that the repository contains an object with the Obj_1 identifier.
Sub Main;
Var
MB: IMetabase;
ObjDesc: IMetabaseObjectDescriptor;
SecDesc: ISecurityDescriptor;
AcessCL: IAccessControlList;
ACE: IAccessControlEntry;
s: String;
Begin
MB:=MetabaseClass.Active;
ObjDesc:=MB.ItemById("Obj_1");
SecDesc:=ObjDesc.SecurityDescriptor;
SecDesc.Edit;
AcessCL:=SecDesc.Acl;
If AcessCL.Remove(2) Then
s:="Yes";
Else
s:="No";
End If;
SecDesc.Apply(True);
End Sub Main;
After executing the example the "s" variable contains "Yes" if removal of the third additional security parameter succeeded.
See also: