IMetabase.DeleteObjectO

Syntax

DeleteObjectO(Options: Integer; Key: Integer);

Parameters

Options. Method of deleting links to repository objects.

Key. Repository object key, links to which must be deleted.

Description

The DeleteObject method deletes links to repository objects.

Comments

The method does throw an exception if the object with the specified key is absent in the repository.

The DeleteObjectOptions enumeration value is used as the Options parameter.

Example

Executing the example requires MDM dictionaries with the NSI_1 identifier.

Add links to the Metabase, Rds system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Obj: IMetabaseObjectDescriptor;
Begin
    MB := MetabaseClass.Active;
    Obj := MB.ItemById("DICT");
    MB.DeleteObjectO(0, Obj.Key);
End Sub UserProc;

After executing the example links to other repository objects are checked for the specified object. Links to repository objects are not deleted.

See also:

IMetabase