IRdsDictionaryElement.DeleteRaw

Syntax

DeleteRaw(Options: DeleteDictionaryElementOptions);

Parameters

Options. Options of deleting elements.

Description

The DeleteRaw method deletes a current element in accordance with specified delete options.

Comments

These delete options are also used to all child elements.

Example

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(NullAs 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:

IRdsDictionaryElement