IMetabaseUpdateContext.RegisterNullRemapping

Syntax

RegisterNullRemapping(OldKey: Integer);

Parameters

OldKey. Object key.

Description

The RegisterNullRemapping method determines objects created by means of zero repeated mapping.

Comments

The method is used to create objects with partial loss of structure (information), in case if not all links to external objects are allowed.

Example

Executing the example requires the C:\Update.pefx update file and the object with the 1286399 key in the update.

Add a link to the Metabase system assembly.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var

   MB: IMetabase;
    Update: IMetabaseUpdate;
    UpdateCxt: IMetabaseUpdateContext;
Begin
    MB := MetabaseClass.Active;
    Update := Mb.CreateUpdate;
    Update.LoadFromFileNF("C:\Update.pefx");
    UpdateCxt := Update.CreateUpdateContext;
    UpdateCxt.RegisterNullRemapping(1286399);
    Update.ApplyEx(Null, UpdateCxt);
End Sub Button1OnClick;

After executing the example the object with zero repeated mapping is set up.

See also:

IMetabaseUpdateContext