IMetabaseObjectDescriptor.MoveTo

Syntax

MoveTo(Dest: IMetabaseObjectDescriptor);

Parameters

Dest. Repository object to which it is necessary to copy the object.

Description

The MoveTo method moves one repository object into another.

Comments

The consumer object must be a non-leaf object of the repository.

Example

In repository add two folders with the FOLDER1 and FOLDER2 identifiers.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObjectDescriptor;
    MObj2: IMetabaseObjectDescriptor;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById(
"FOLDER1"As IMetabaseObjectDescriptor;
    MObj2 := MB.ItemById(
"FOLDER2"As IMetabaseObjectDescriptor;
    MObj.MoveTo(MObj2);
End Sub UserProc;

After executing the example the FOLDER1 folder will be folded into the FOLDER2 folder.

See also:

IMetabaseObjectDescriptor