AllowReplaceSD: Boolean;
The AllowReplaceSD property determines whether it is possible to replace the list of security access control for the update objects.
Available values:
True. The list of security access control for the update objects can be replaced.
False. The list of security access control for the update objects cannot be replaced. In this case the ReplaceSecurityDescriptor value of the update element is ignored.
Executing the example requires the C:\Update.pefx update file that contains an element with the OBJ1 identifier, which is a repository object or a special object.
Add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
Update: IMetabaseUpdate;
UON: IMetabaseUpdateObjectNode;
obj: IMetabaseObjectDescriptor;
objkey: integer;
Begin
MB := MetabaseClass.Active;
Update := Mb.CreateUpdate;
Update.LoadFromFileNF("C:\Update.pefx");
obj := MB.ItemById("OBJ1");
objkey := obj.Key;
Update.AllowReplaceSD := True;
UON := Update.RootFolder.FindObject(objkey);
UON.UpdatePart := MetabaseObjectUpdatePart.ReplaceSecurityDescriptor;
Update.SaveToFileNF("C:\Update_AR.pefx");
End Sub UserProc;
After executing the example, the update file with the changed list of access control for the object with the OBJ1 identifier will be saved to the C:\ folder.
See also: