ISiteCreatePage Method (IPageCreationRule, String, IPage, Boolean, String) |
Namespace: Ingeniux.CMS
IPage CreatePage( IPageCreationRule pcr, string pageName, IPage overrideParentPage = null, bool dontAddToWorkFlow = false, string userId = "" )
Exception | Condition |
---|---|
ArgumentNullException | When "pcr" parameter is null |
ArgumentException | When "pcr" doesn't have any Parent Pages and "overrideParentPage" is null, or "overrideParentPage" is not in the allow Parent Pages for the "pcr". |
SecurityException | When Operating User doesn't have full access to the actual parent Page. |
"pcr" parameter cannot be null, or error will be thrown.
If "pageName" is null or empty, it will be default to one empty space.
When "overrideParentPage" is not null, it must be allowed for the "pcr" as a Parent Page to create new Pages under; When it is null, the "pcr"'s First accessible Parent Page will be used as parent Page.
The parameter "userId" doesn't have to be specified. If not specified, the new Page will be assigned to either the Default Transition 's Default User, to the Transitions's Next Group.
The event "PageCreated" will be fired upon page creation.