Class CloneFolderMediaWebFarmTask
- Namespace
- CMS.MediaLibrary
- Assembly
- CMS.MediaLibrary.dll
Web farm task used to clone media folders.
[Obsolete("Media libraries and their APIs are obsolete and will be discontinued in the future. Please migrate all media library files to Content hub and use their corresponding content item APIs.")]
public class CloneFolderMediaWebFarmTask : WebFarmTaskBase
- Inheritance
-
objectCloneFolderMediaWebFarmTask
- Inherited Members
- Extension Methods
Constructors
CloneFolderMediaWebFarmTask()
Initializes a new instance of CloneFolderMediaWebFarmTask.
public CloneFolderMediaWebFarmTask()
Properties
DestinationLibraryId
Gets or sets the identifier of the library where the folder will be cloned.
public int DestinationLibraryId { get; set; }
Property Value
- int
SourceLibraryId
Gets or sets the identifier of the library from where the folder will be cloned.
public int SourceLibraryId { get; set; }
Property Value
- int
Methods
ConditionMethod()
Returns true whether the synchronization for cloning media folders is allowed and provided storage is not shared.
public override bool ConditionMethod()
Returns
- bool
ExecuteTask()
Processes the web farm task by invoking the CopyRecursive(int, int, DirectoryInfo, string, string, int, string, bool, int, bool, CloneSettings, CloneResult) method while passing it current class' properties as its parameters.
public override void ExecuteTask()