IAssetManagerCopyAsset Method
|
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax IAsset CopyAsset(
IAsset source,
IAssetFolder targetParent,
bool overwrite,
string newName = ""
)
Function CopyAsset (
source As IAsset,
targetParent As IAssetFolder,
overwrite As Boolean,
Optional newName As String = ""
) As IAsset
IAsset^ CopyAsset(
IAsset^ source,
IAssetFolder^ targetParent,
bool overwrite,
String^ newName = L""
)
abstract CopyAsset :
source : IAsset *
targetParent : IAssetFolder *
overwrite : bool *
?newName : string
(* Defaults:
let _newName = defaultArg newName ""
*)
-> IAsset
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:
IAssetThe newly created
Asset.
See Also