Click or drag to resize

CustomHooksOnBeforeMarkForPublish Method

This method is invoked before a Page is marked/unmarked for publish

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux_API_Extensions_Development_Harness (in Ingeniux_API_Extensions_Development_Harness.dll) Version: 10.3.169
Syntax
C#
public void OnBeforeMarkForPublish(
	IPage page,
	bool recursive,
	IEnumerable<PublishingTargetWithMarkedVersion> markedTargets,
	IEnumerable<IPublishingTarget> unmarkedTargets,
	IUserWriteSession session
)

Parameters

page
Type: IPage
Page that will be marked/unmarked for publish
recursive
Type: SystemBoolean
Whether or not the action is recursive
markedTargets
Type: System.Collections.GenericIEnumerablePublishingTargetWithMarkedVersion
The list of Publishing Targets that this Page will be marked on. Includes marked versions for each Target.
unmarkedTargets
Type: System.Collections.GenericIEnumerableIPublishingTarget
The list of Publishing Targets that this Page will be unmarked on.
session
Type: IUserWriteSession
The session that must be used to perform tasks on additional objects

Implements

IContentItemHooks.OnBeforeMarkForPublish(UTP, Boolean, IEnumerablePublishingTargetWithMarkedVersion, IEnumerableIPublishingTarget, IUserWriteSession)
Remarks
When this action is invoked, the objects involved have yet to be saved to the Content Store.
See Also