IMetabaseObjectDescriptor.MoveTo

Fore Syntax

MoveTo(Dest: IMetabaseObjectDescriptor);

Fore.NET Syntax

MoveTo (Dest: Prognoz.Platform.Interop.Metabase.IMetabaseObjectDescriptor);

Parameters

Dest - the object of the repository 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.

Fore Example

To execute the example, add a link to the Metabase system assembly. Add two folders to the repository with the FOLDER and FOLDER2 identifiers.

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

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

Fore.NET Example

To execute the example, add a link to the Metabase system assembly. Add two folders to the repository with the FOLDER and FOLDER2 identifiers.

Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MObj: IMetabaseObjectDescriptor;
    MObj2: IMetabaseObjectDescriptor;
Begin
    MB := Params.Metabase;
    MObj := MB.ItemById[
"FOLDER"] As IMetabaseObjectDescriptor;
    MObj2 := MB.ItemById[
"FOLDER2"] As IMetabaseObjectDescriptor;
    MObj.MoveTo(MObj2);
End Sub Main;

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

See also:

IMetabaseObjectDescriptor