IMetabaseUpdateDeleteObjectNode.Object

Syntax

Object: IMetabaseObjectDescriptor;

Description

The Object property determines the object descriptor that should be deleted on update.

Comments

The object that should be deleted on update can also be set by its key or identifier. Use the corresponding properties: IMetabaseUpdateDeleteObjectNode.ObjectKey or IMetabaseUpdateDeleteObjectNode.ObjectId.

Example

Executing the example requires the update file C:\Update.pefx. The repository should contain an object with the OBJ_FOR_PEF identifier. Add a link to the Metabase system assembly.

    Sub UserProc;
    Var
        MB: IMetabase;
        Update: IMetabaseUpdate;
        UFN: IMetabaseUpdateFolderNode;
        UpdateObj: IMetabaseUpdateDeleteObjectNode;
    Begin
        MB := MetabaseClass.Active;
        Update := Mb.CreateUpdate;
        Update.LoadFromFileNF("C:\Update.pefx");
        UFN := Update.RootFolder;
        UpdateObj := UFN.Add(MetabaseUpdateNodeType.DeleteObject) As IMetabaseUpdateDeleteObjectNode;
        UpdateObj.Object := MB.ItemById("OBJ_FOR_PEF");
        UpdateObj.Label := "Delete the OBJ_FOR_PEF object";
        Update.SaveToFileNF("C:\Update.pefx");
    End Sub UserProc;

After executing the example the OBJ_FOR_PEF object deletion is added to the C:\Update.pefx update structure. Changes in the update will be saved.

See also:

IMetabaseUpdateDeleteObjectNode