IMetabasePolicy.AllowDeferredLoading

Syntax

AllowDeferredLoading: TriState;

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.

Example

To execute the example, add links to the Metabase, ForeSystem (for the Fore.NET example) system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    Policy: IMetabasePolicy;
    Lic: Object;
Begin
    MB := MetabaseClass.Active;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
    MS := MB.Security;
    Policy := MS.Policy;
    
// Set connection to repository without deferred loading of descriptors
    Policy.AllowDeferredLoading := TriState.OnOption;
    
// Save changes
    MS.Apply;
    
// Check in license
    Lic := Null;
End Sub UserProc;

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

Public Shared Sub Main(Params : StartParams);
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    Policy: IMetabasePolicy;
    Lic: Object;
Begin
    MB := Params.Metabase;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.lftAdm);
    MS := MB.Security;
    Policy := MS.Policy;
    
// Set connection to repository without deferred loading of descriptors
    Policy.AllowDeferredLoading := TriState.tsOnOption;
    
// Save changes
    MS.Apply();
    
// Check in license
    Lic := Null;
End Sub;

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

See also:

IMetabasePolicy