November Happy Hour will be moved to Thursday December 5th.

Class SavePageEventArgs

Event arguments used for save-related events.

Inheritance
System.Object
SavePageEventArgs
Namespace: EPiServer
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class SavePageEventArgs : PageEventArgs

Constructors

SavePageEventArgs(ContentReference, IContent)

Initializes a new instance of the SavePageEventArgs class.

Declaration
public SavePageEventArgs(ContentReference contentLink, IContent content)
Parameters
Type Name Description
ContentReference contentLink

The content link.

IContent content

The content.

SavePageEventArgs(ContentReference, IContent, SaveAction)

Initializes a new instance of the SavePageEventArgs class.

Declaration
public SavePageEventArgs(ContentReference contentLink, IContent content, SaveAction action)
Parameters
Type Name Description
ContentReference contentLink

The content link.

IContent content

The content.

SaveAction action

The save action to perform.

Properties

Action

Gets the requested save action.

Declaration
public SaveAction Action { get; }
Property Value
Type Description
SaveAction

The save action.

ForceCurrentVersion

Gets or sets a value indicating whether to save to overwrite the current version.

Declaration
public bool ForceCurrentVersion { get; set; }
Property Value
Type Description
System.Boolean

true if force overwrite of current version; otherwise, false.

MaskedAction

Gets the save action without any Force... flags.

Declaration
public SaveAction MaskedAction { get; }
Property Value
Type Description
SaveAction

The masked action.

RequireNewVersion

Gets or sets a value indicating whether the save operation will force a new version of the page.

Declaration
public bool RequireNewVersion { get; set; }
Property Value
Type Description
System.Boolean

true if force new version; otherwise, false.

Extension Methods