DeleteRaw(Options: DeleteDictionaryElementOptions);
Options. Options of deleting elements.
The DeleteRaw method deletes a current element in accordance with specified delete options.
These delete options are also used to all child elements.
Executing the example requires that the repository contains an MDM repository with the MDM identifier. The MDM dictionary with the Country identifier is created in this repository. Tracking links to elements is enabled for a dictionary.
Sub UserProc;
Var
MB: IMetabase;
Dict: IRdsDictionary;
Elements: IRdsDictionaryElements;
Element: IRdsDictionaryElement;
Begin
MB := MetabaseClass.Active;
Dict := MB.ItemByIdNamespace("Country", MB.GetObjectKeyById("RDS")).Bind As IRdsDictionary;
Elements := (Dict.Open(Null) As IRdsDictionaryInstance).Elements;
Element := Elements.Item(1);
Element.DeleteRaw(DeleteDictionaryElementOptions.ForceDeleteDependents);
End Sub UserProc;
On executing the example the specified element of the MDM dictionary is deleted. If some repository objects depend on this element, object dependencies are also deleted.
See also: