Click or drag to resize

IContentItemHooksTOnRename Method


Custom hook that fires when a Content Item is renamed.

Namespace:  Ingeniux.CMS.Models.Hooks
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
void OnRename(
	string oldName,
	string newName,
	T contentItem,
	IUserWriteSession session
)

Parameters

oldName
Type: SystemString
Previous name for the Content Item.
newName
Type: SystemString
New name for the Content Item.
contentItem
Type: T
Loaded Content Item.
session
Type: Ingeniux.CMSIUserWriteSession
IUserWriteSession in which the Content Item is loaded into.
See Also