Permanent: Boolean;
The Permanent property determines whether a permanent repository object is created.
Available values:
True. After executing the IMetabase.CreateObject method the created object is saved directly to the repository. The basic properties will be set for the object. The structure of the object should be edited and the specific properties should be set for the future object functionality.
False. Default value. After executing the IMetabase.CreateObject method a template with object description is created. It is necessary to open the structure of object in the edit mode, change the necessary properties and save new object using the IMetabaseObject.Save method to make the object available.
Add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
CrInfo: IMetabaseObjectCreateInfo;
Begin
MB := MetabaseClass.Active;
CrInfo := MB.CreateCreateInfo;
CrInfo.ClassID := MetabaseObjectClass.KE_CLASS_FOLDER;
CrInfo.Id := "NewFolder";
CrInfo.Name := New folder;
CrInfo.Permanent := True;
MB.CreateObject(CrInfo);
End Sub UserProc;
A new folder is created in the root folder of the repository root after executing this example.
See also: