Click or drag to resize

IContentItemHooksTOnBeforeMarkForPublish Method


Custom hook that fires before a Content Item has its marking changed.

Namespace:  Ingeniux.CMS.Models.Hooks
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
void OnBeforeMarkForPublish(
	T contentItem,
	bool recursive,
	IEnumerable<PublishingTargetWithMarkedVersion> markedTargets,
	IEnumerable<IPublishingTarget> unmarkedTargets,
	IUserWriteSession session
)

Parameters

contentItem
Type: T
Loaded Content Item. Edits will be lost if permanent is True.
recursive
Type: SystemBoolean
True if the Mark for Publish operation includes descendants.
markedTargets
Type: System.Collections.GenericIEnumerablePublishingTargetWithMarkedVersion
Collection of data describing the publishing targets that are being marked as well as the marked version number.
unmarkedTargets
Type: System.Collections.GenericIEnumerableIPublishingTarget
Collection of publishing targets that are being unmarked.
session
Type: Ingeniux.CMSIUserWriteSession
IUserWriteSession in which the Content Item is loaded into.
See Also