Click or drag to resize

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.492
Syntax
void OnRenameAsset(
	string oldName,
	string newName,
	IAssetItem contentItem,
	IUserWriteSession session
)

Parameters

oldName  String
The name of the content item before it was renamed.
newName  String
The new name of the content item.
contentItem  IAssetItem
The content item that was renamed.
session  IUserWriteSession
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