Click or drag to resize

IAssetManagerMoveAsset Method


Moves an asset from its current location to a new target Asset Folder.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax
IAsset MoveAsset(
	IAsset source,
	IAssetFolder targetParent,
	string newAssetName,
	bool overwrite
)

Parameters

source
Type: Ingeniux.CMSIAsset
The Asset to be moved.
targetParent
Type: Ingeniux.CMSIAssetFolder
The new parent Asset Folder into which the asset will be moved.
newAssetName
Type: SystemString
The name for the new Asset.
overwrite
Type: SystemBoolean
Whether to replace an existing Asset of the same name with the newly created asset.

Return Value

Type: IAsset
The "source" Asset after it has been moved.
See Also