Click or drag to resize

IPageRepublish Method


Publishes the page, with or without its descendants, to the specified Publishing Target.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax
void Republish(
	IPublishingTarget pubTarget,
	bool recursive,
	bool incremental
)

Parameters

pubTarget  IPublishingTarget
Publishing target to publish to; this value is required.
recursive  Boolean
Publish the page itself or with its descendants
incremental  Boolean
Incremental or full publish
Remarks

If pubTarget is null, an error is thrown.

If the current user doesn't have the permissions to perform publishes, an error is thrown.

If the current user doesn't have access to the given publishing target, an error is thrown.

If the publish is incremental and current user doesn't have permission to perform incremental publishes, an error is thrown.

If the page is under the given publishing target, no action is taken.

For incremental publishes, only the pages that were updated since the last publish will be published.

Before the publish task is submitted, the event BeforePublish is fired. The event Published is fired when the publish task finishes.

See Also