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
)
Sub OnBeforeMarkForPublish (
contentItem As T,
recursive As Boolean,
markedTargets As IEnumerable(Of PublishingTargetWithMarkedVersion),
unmarkedTargets As IEnumerable(Of IPublishingTarget),
session As IUserWriteSession
)
void OnBeforeMarkForPublish(
T contentItem,
bool recursive,
IEnumerable<PublishingTargetWithMarkedVersion^>^ markedTargets,
IEnumerable<IPublishingTarget^>^ unmarkedTargets,
IUserWriteSession^ session
)
abstract OnBeforeMarkForPublish :
contentItem : 'T *
recursive : bool *
markedTargets : IEnumerable<PublishingTargetWithMarkedVersion> *
unmarkedTargets : IEnumerable<IPublishingTarget> *
session : IUserWriteSession -> unit
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