Click or drag to resize

IAssetHooksOnBeforeMarkForPublishAsset Method


This method is invoked before an Asset is marked/unmarked for publish.

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

Parameters

contentItem  IAssetItem
The content item that will be marked/unmarked for publish.
recursive  Boolean
Whether or not the action works recursively on descendants of the content item.
markedTargets  IEnumerablePublishingTargetWithMarkedVersion
The list of Publishing Targets that this content item will be marked on. Includes marked versions for each Target.
unmarkedTargets  IEnumerableIPublishingTarget
The list of Publishing Targets that this content item will be unmarked on.
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