SaveDescriptor;
The SaveDescriptor method saves the changes of the repository object description.
Executing the example requires that the repository contains an object with the Obj_1 identifier.
Sub Main;
Var
MB: IMetabase;
MDesc: IMetabaseObjectDescriptor;
Begin
MB := MetabaseClass.Active;
MDesc := MB.ItemById("Obj_1");
MDesc := MDesc.EditDescriptor;
MDesc.Description := "Outdated version of object" + MDesc.Id;
MDesc.Id := MDesc.Id + "_Old";
MDesc.Name := MDesc.Name + " (Outdated version)";
MDesc.SaveDescriptor;
End Sub Main;
After executing the example the description of the specified object is changed.
See also: