CreateDeferredSubjects : Boolean;
CreateDeferredSubjects : boolean;
The CreateDeferredSubjects property determined whether users with deferred loading are created.
Default property value is False.
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.
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: