IMetabaseUpdateDeleteObjectNode.ObjectKey

Syntax

ObjectKey: Integer;

Description

The ObjectKey property determines a key of the object deleted on update.

Example

Executing the example requires that the repository contains an object with the 100 key.

Sub UserProc;
Var
    MB: IMetabase;
    Update: IMetabaseUpdate;
    DelObject: IMetabaseUpdateDeleteObjectNode;
Begin
    MB := MetabaseClass.Active;
    Update := MB.CreateUpdate;
    DelObject := Update.RootFolder.Add(MetabaseUpdateNodeType.DeleteObject) As IMetabaseUpdateDeleteObjectNode;
    DelObject.Label := "Delete object with the 100 key";
    DelObject.ObjectKey := 100;
    Update.SaveToFileNF("c:\DelObject.pefx");
End Sub UserProc;

After executing the example a new update is created. The object that deletes a repository object with the key 100 is included in the update.

See also:

IMetabaseUpdateDeleteObjectNode