Click or drag to resize

IAssetManagerCopyAsset Method


Creates a copy of an Asset into a target Asset Folder.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax
IAsset CopyAsset(
	IAsset source,
	IAssetFolder targetParent,
	bool overwrite,
	string newName = ""
)

Parameters

source
Type: Ingeniux.CMSIAsset
The Asset to be copied.
targetParent
Type: Ingeniux.CMSIAssetFolder
The Asset Folder into which the new Asset will be created.
overwrite
Type: SystemBoolean
Whether to replace an existing Asset of the same name with the newly created assets.
newName (Optional)
Type: SystemString
The name for the new Asset.

Return Value

Type: IAsset
The newly created Asset.
See Also