DeleteObjectO(Options: Integer; Key: Integer);
DeleteObjectO(Options: integer; Key: uinteger);
Options. Method of deleting links to repository objects.
Key. Repository object key, links to which must be deleted.
The DeleteObject method deletes links to repository objects.
The DeleteObjectOptions enumeration value 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;
Imports Prognoz.Platform.Interop.Rds;
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Obj: IMetabaseObjectDescriptor;
Begin
MB := Params.Metabase;
Obj := MB.ItemById["DICT"];
MB.DeleteObjectO(1, Obj.Key);
End Sub;
After executing the example links to other repository objects are checked for the specified object. Links to repository objects are not deleted.
See also: