MoveTo(Dest: IMetabaseObjectDescriptor);
MoveTo (Dest: Prognoz.Platform.Interop.Metabase.IMetabaseObjectDescriptor);
Dest - the object of the repository to which it is necessary to copy the object.
The MoveTo method moves one repository object into another.
The consumer object must be a non-leaf object of the repository.
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.
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: