IMetabasePolicy.AllowDeferredLoading

Fore Syntax

AllowDeferredLoading: TriState;

Fore.NET Syntax

AllowDeferredLoading: Prognoz.Platform.Interop.ForeSystem.TriState;

Description

The AllowDeferredLoading property determines the attribute of the deferred loading of descriptors on connecting to the repository.

Comments

By default the property is set to Undefined, the attribute of delayed loading of descriptors is taken form the DeferredLoading property which is set in repository description.

If AllowDeferredLoading is set to OffOption, all connections to repository are performed without delayed loading of descriptors. The DeferredLoading property value is ignored.

If AllowDeferredLoading is set to OnOption, all connections to repository are performed with delayed loading of descriptors. The DeferredLoading property value is ignored.

Fore Example

To execute the example, add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    Policy: IMetabasePolicy;
Begin
    MB := MetabaseClass.Active;
    MS := MB.Security;
    Policy := MS.Policy;
    Policy.AllowDeferredLoading := TriState.OnOption;
    MS.Apply;
End Sub UserProc;

After executing the example, all connections to the repository will be performed without the deferred loading of descriptors.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example. The ForeSystem system assembly should be also connected.

Imports Prognoz.Platform.Interop.ForeSystem;
Imports Prognoz.Platform.Interop.Metabase;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    Policy: IMetabasePolicy;
Begin
    MB := Params.Metabase;
    MS := MB.Security;
    Policy := MS.Policy;
    Policy.AllowDeferredLoading := TriState.tsOnOption;
    MS.Apply();
End Sub;

See also:

IMetabasePolicy