RegisterKeyChange(ClassId: Integer; OldKey: Integer; NewKey: Integer; OldId: String; NewId: String; NewObject: IMetabaseObject);
RegisterKeyChange(ClassId: integer; OldKey: uinteger; NewKey: uinteger; OldId: string; NewId: string; NewObject: Prognoz.Platform.Interop.Metabase.IMetabaseObject);
ClassId. The identifier of the consumer repository class, to which the update object refers.
OldKey. The key of the provider repository object, to which the object refers before update.
NewKey. The key of the consumer repository object, to which the object refers after update.
OldId. The identifier of the provider repository object on which the object refers before updating.
NewId. The identifier of the consumer repository object, to which the object refers after update.
NewObject. The consumer repository object on which the object refers after updating.
The RegisterKeyChange method overrides the key of the repository object to which the update object refers.
The RegisterKeyChange method overrides the object on which the update object refers, by replacing keys.
If you specify a non-existing object as the NewObject parameter, the repository object is updated without reconfiguring links. If the repository does not contain the object with the specified key the references are reconfigured by identifiers.
One of available values of the MetabaseObjectClass is specified as the value of the ClassId parameter.
The method use is given in the example for IMetabaseUpdateContext.RegisterHierarchyChange.
See also: