IMetabaseUpdateDeleteObjectNode.ObjectKey

Syntax

ObjectKey: Integer;

Description

The ObjectKey property determines a key of the object removed 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 := "Remove object with the 100 key";
    DelObject.ObjectKey := 100;
    Update.SaveToFileNF("c:\DelObject.pefx");
End Sub UserProc;

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

See also:

IMetabaseUpdateDeleteObjectNode