Click or drag to resize

IContentItemCheckOut Method


Checks out the page and assigns it to the current user. A page can only be edited after it is checked out to the current user.

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

Parameters

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

Return Value

Type: Int32
Count of pages operated over
Remarks

If a page was already checked out, this method will continue to check out descendants. If not a recursive operation, 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 was assigned to another user and the current user doesn't have the right to assign a page, an error will be thrown.

Two events are fired during execution of this method: BeforePageCheckOut and AfterPageCheckOut.

See Also