Click or drag to resize

IContentItemUndoCheckOut Method


Discards the changes in checked-out content and reverts the page to a checked-in state.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax
int UndoCheckOut(
	bool recursive
)

Parameters

recursive
Type: SystemBoolean
Specifies whether to also undo check out on the descendants of this page.

Return Value

Type: Int32

[Missing <returns> documentation for "M:Ingeniux.CMS.IContentItem.UndoCheckOut(System.Boolean)"]

Remarks

If page wasn't checked out, nothing will happen.

The current user must have permission to check in and check out pages. Otherwise, an error will be thrown.

The current user must have Full Access to this page. Otherwise, an error will be thrown.

If the page is not assigned to the current user and the current user doesn't have the right to check in other users' pages, an error will be thrown.

Two events are fired during execution of this method: BeforePageUndoCheckOut and AfterPageUndoCheckOut.

See Also