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
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
Exception | Condition |
---|---|
ArgumentNullException | When 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