IMetabasePolicy.AllowDeferredLoading

Syntax

AllowDeferredLoading: TriState;

Description

The AllowDeferredLoading property determines whether lazy loading of descriptors is executed on repository connection.

Comments

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

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

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

Example

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

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 lazy loading of descriptors
    Policy.AllowDeferredLoading := TriState.OffOption;
    
// Save changes
    MS.Apply;
    
// Check in license
    Lic := Null;
End Sub UserProc;

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

See also:

IMetabasePolicy