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.6.492
Syntax
IAsset MoveAsset(
	IAsset source,
	IAssetFolder targetParent,
	string newAssetName,
	bool overwrite
)

Parameters

source  IAsset
The Asset to be moved.
targetParent  IAssetFolder
The new parent Asset Folder into which the asset will be moved.
newAssetName  String
The name for the new Asset.
overwrite  Boolean
Whether to replace an existing Asset of the same name with the newly created asset.

Return Value

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