Documentation > CMS Template API Library > Asset > Move(Asset)

Move

Moves this asset to the specified destination folder.

public System.Boolean Move(Asset)


Returns

Returns true upon succesfully moving the asset to the destination. Otherwise it will return false.

Parameters

NameDescriptionType
destination The destination. Must be a FolderType Asset otherwise it will throw an error. CrownPeak.CMSAPI.Asset

Code Example

C#

Sample:
Asset moveThisAsset = Asset.Load("/Site/About Us/About Us");
Asset destinationFolderAsset = Asset.Load("/Site/Working Folder");
moveThisAsset.Move(destinationFolderAsset);

Connect with Crownpeak