Save page and specify required access level manually.

Namespace:  EPiServer
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public PageReference Save(
	PageData page,
	SaveAction action,
	AccessLevel access
)

Parameters

page
Type: EPiServer.Core..::.PageData
A initalized PageData object containing data to be saved
action
Type: EPiServer.DataAccess..::.SaveAction
Action that will be performed
access
Type: EPiServer.Security..::.AccessLevel
The minimum access level that the current user must have to retrieve the page.

Return Value

Remarks

If PageLink is empty a new page will be created

Exceptions

ExceptionCondition
EPiServer.Core..::.AccessDeniedException Thrown AccessDeniedException when user doesnt have access right to perform this action
EPiServer.Core..::.EPiServerCancelException Thrown when the CreatingEvent, SavingEvent, PublishingEvent or SavingEvent is canceled
System..::.ArgumentNullException Thrown when the page is null

See Also