Class SavePageEventArgs
Event arguments used for save-related events.
Inherited Members
System.EventArgs.Empty
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer
Assembly: EPiServer.dll
Version: 11.20.7Syntax
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 |
|
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 |
|