IPublishingTargetMarkPageForPublish Method Ingeniux CMS Content Store API

Marks or unmarks a Page to publish, on a specified version number, on this publishing target.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax

void MarkPageForPublish(
	IPage page,
	bool mark,
	int versionToMark = 0
)

Parameters

page
Type: Ingeniux.CMSIPage
The page whose publish marking to change
mark
Type: SystemBoolean
Whether to mark or unmark the Page
versionToMark (Optional)
Type: SystemInt32
If to mark for publish, the version number to mark on. Default value is 0, means marking the Page on its latest version.
Exceptions

ExceptionCondition
ArgumentNullExceptionWhen the "page" parameter value is null.
Remarks

Recycled Pages cannot be marked for publish.

The specified Page's Last Modified Time will be updated after calling this method.

The events BeforePublishingTargetMarkForPublishChange and AfterPublishingTargetMarkForPublishChange are fired before and after, respectively, calling this method.

See Also

Reference