Subjects: IMetabaseUpdateAccessSubjects;
Subjects: Prognoz.Platform.Interop.Metabase.IMetabaseUpdateAccessSubjects;
The Subjects property determines the security subjects for which the access permissions are transferred.
To execute the example, add a link to the Metabase system assembly. The C:\Update.pefx update file is required. The file must contain the update by access permissions.
Sub Main(Params: StartParams);
Var
MB: IMetabase;
Update: IMetabaseUpdate;
Begin
MB := Params.Metabase;
Update := MB.CreateUpdate();
Update.LoadFromFileNF("D:\"+ "Update.pefx", UpdateLoadMode.ulmReplace);
System.Diagnostics.Debug.WriteLine(Update.Subjects.Count);
End Sub;
After executing the example the console window displays the number of security subjects for which the access permissions are transferred.
To execute the example, add a link to the Metabase system assembly. The C:\Update.pefx update file is required. The file must contain the update by access permissions.
Sub Main;
Var
MB: IMetabase;
Update: IMetabaseUpdate;
Begin
MB := MetabaseClass.Active;
Update := MB.CreateUpdate;
Update.LoadFromFileNF("D:\Update.pefx");
debug.WriteLine(Update.Subjects.Count);
End Sub Main;
After executing the example the console window displays the number of security subjects for which the access permissions are transferred.
See also: