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.6.492
Syntax
IAsset CopyAsset(
	IAsset source,
	IAssetFolder targetParent,
	bool overwrite,
	string newName = ""
)

Parameters

source  IAsset
The Asset to be copied.
targetParent  IAssetFolder
The Asset Folder into which the new Asset will be created.
overwrite  Boolean
Whether to replace an existing Asset of the same name with the newly created assets.
newName  String  (Optional)
The name for the new Asset.

Return Value

IAsset
The newly created Asset.
See Also