Click or drag to resize

IContentItemHooksTOnAfterDelete Method


Custom hook that fires after a Content Item is deleted.

Namespace:  Ingeniux.CMS.Models.Hooks
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
void OnAfterDelete(
	string contentItemId,
	bool permenant,
	T contentItem,
	IUserWriteSession session
)

Parameters

contentItemId
Type: SystemString
Id of the Content Item that was removed.
permenant
Type: SystemBoolean
True if the removal was permanent. False if it is moved to the RecycleBin.
contentItem
Type: T
Loaded Content Item. Edits will be lost if permanent is True.
session
Type: Ingeniux.CMSIUserWriteSession
IUserWriteSession in which the Content Item is loaded into.
See Also