IMetabasePolicy.CreateDeferredSubjects

Fore Syntax

CreateDeferredSubjects : Boolean;

Fore.NET Syntax

CreateDeferredSubjects : boolean;

Description

The CreateDeferredSubjects property determined whether users with deferred loading are created.

Default property value is False.

Fore Example

Executing the example requires a form containing the Button component with the Button1 identifier.

Add links to the Metabase system assembly.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    MB: IMetabase;
    Security: IMetabaseSecurity;
    Policy: IMetabasePolicy;

Begin
    MB := MetabaseClass.Active;
    Security := MB.Security;
    Policy := Security.Policy;
   Policy.CreateDeferredSubjects := 
True;
    Security.Apply;
End Sub Button1OnClick;

After executing clicking the button enables creation of users with deferred loading.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.

Imports Prognoz.Platform.Interop.Metabase;
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    MB: IMetabase;
    Security: IMetabaseSecurity;
    Policy: IMetabasePolicy;
    
Begin
    MB := Self.Metabase;
    Security := MB.Security;
    Policy := Security.Policy;
   Policy.CreateDeferredSubjects := 
True;
    Security.Apply();
End Sub;

See also:

IMetabasePolicy