Carries out security entry updates when asset path is renamed or moved
Namespace: Ingeniux.CMSAssembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
void RenameAsset(
string assetPathOld,
string assetPathNew,
EnumAssetType assetType
)
Sub RenameAsset (
assetPathOld As String,
assetPathNew As String,
assetType As EnumAssetType
)
void RenameAsset(
String^ assetPathOld,
String^ assetPathNew,
EnumAssetType assetType
)
abstract RenameAsset :
assetPathOld : string *
assetPathNew : string *
assetType : EnumAssetType -> unit
Parameters
- assetPathOld
- Type: SystemString
The old asset path - assetPathNew
- Type: SystemString
The new asset path - assetType
- Type: Ingeniux.CMS.EnumsEnumAssetType
The type of asset in the path
This method should be called when trying to programatically change asset paths. It is not automatically called when performing manual file system changes.
However, if an asset path is manually changed, its access security entry will not longer apply. The newly updated asset path instead use inherited security, or full access for the Everyone group.
Reference