IMetabasePolicy.LockIdentifiersPeriod

Syntax

LockIdentifiersPeriod: Integer;

Description

The LockIdentifiersPeriod property determines a period, during which it is forbidden to reuse certificates of deleted users.

Comments

The period is in days. The property is set to 0 by default.

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 period
    Policy.LockIdentifiersPeriod := 10;
    
// Save changes
    MS.Apply;
    
// Check in license
    Lic := Null;
End Sub UserProc;

After executing the example the period, during which it is forbidden to reuse identifiers of deleted users, will be set to ten days.

See also:

IMetabasePolicy