IAssetHooksOnRenameAsset Method
|
This method is invoked after an Asset is renamed.
DO NOT call contentItem.Name inside this method, otherwise it will cause an infinite loop.
Namespace:
Ingeniux.CMS.Models.Hooks
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax void OnRenameAsset(
string oldName,
string newName,
IAssetItem contentItem,
IUserWriteSession session
)
Sub OnRenameAsset (
oldName As String,
newName As String,
contentItem As IAssetItem,
session As IUserWriteSession
)
void OnRenameAsset(
String^ oldName,
String^ newName,
IAssetItem^ contentItem,
IUserWriteSession^ session
)
abstract OnRenameAsset :
oldName : string *
newName : string *
contentItem : IAssetItem *
session : IUserWriteSession -> unit
Parameters
- oldName
- Type: SystemString
The name of the content item before it was renamed. - newName
- Type: SystemString
The new name of the content item. - contentItem
- Type: Ingeniux.CMSIAssetItem
The content item that was renamed. - session
- Type: Ingeniux.CMSIUserWriteSession
The session that must be used to perform tasks on additional objects.
Remarks When this action is invoked, the objects involved have yet to be saved to the Content Store.
See Also