IMetabasePolicy.CheckObjectVerionOnUpdateFromPef

Syntax

CheckObjectVerionOnUpdateFromPef: Boolean;

Description

The CheckObjectVerionOnUpdateFromPef property determines if object version is checked during update.

Comments

Available values:

For details about object version control during update see the General Policy Settings article.

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
    // Get the current repository
    MB := MetabaseClass.Active;
    // Get license to be able to work with the security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
    MS := MB.Security;
    Policy := MS.Policy;
    // Enable object version check during update
    If Policy.CheckObjectVerionOnUpdateFromPef = False Then
        Policy.CheckObjectVerionOnUpdateFromPef := True;
    End If;
    // Save changes
    MS.Apply;
    // Check in license
    Lic := Null;
End Sub UserProc;

After executing the example, object version check during update is enabled.

See also: