IMetabaseUpdate.Subjects

Fore Syntax

Subjects: IMetabaseUpdateAccessSubjects;

Fore.NET Syntax

Subjects: Prognoz.Platform.Interop.Metabase.IMetabaseUpdateAccessSubjects;

Description

The Subjects property determines the security subjects for which the access permissions are transferred.

Fore Example

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.

Fore.NET Example

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:

IMetabaseUpdate