Metabase > Metabase Assembly Interfaces > IMetabase > IMetabase.DeleteObjectO
DeleteObjectO(Options: Integer; Key: Integer);
Options. Method of deleting links to repository objects.
Key. Repository object key that should be deleted.
The DeleteObjectO method deletes the repository object with specifying a method for deleting links to objects.
The method does throw an exception if the object with the specified key is absent in the repository.
Value of the DeleteObjectOptions enumeration is used as the Options parameter.
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. The object will be deleted, links to repository objects will not be deleted.
See also: