Click or drag to resize

IContentItemAssignUser Method


Assigns this page to a specific User.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
void AssignUser(
	IUser user,
	string comment
)

Parameters

user
Type: Ingeniux.CMSIUser
User to whom to assign the page
comment
Type: SystemString
Comments for this assignment action
Remarks

If the user parameter is null, this is an unassign operation.

If the page currently assigned to a Group, the new user must be a member of this group. Only administrators are allowed to assign this page to a user that is not a member of the Assigned Group.

When the page is not in a Workflow, the comment specified will be set on the page itself in the AssignmentComment property.

When the page is in a workflow, the specified user must be a member of the CurrentGroup of the workflow. Otherwise, an error will be thrown.

Two events are fired during execution of this method: BeforePageAssign, and AfterPageAssign.

See Also