Class SaveContentEventArgs
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: 9.12.2Syntax
public class SaveContentEventArgs : ContentEventArgs
Constructors
SaveContentEventArgs(ContentReference, IContent)
Initializes a new instance of the SaveContentEventArgs class.
Declaration
public SaveContentEventArgs(ContentReference contentLink, IContent content)
Parameters
Type | Name | Description |
---|---|---|
ContentReference | contentLink | The content link. |
IContent | content | The content. |
SaveContentEventArgs(ContentReference, IContent, SaveAction)
Initializes a new instance of the SaveContentEventArgs class.
Declaration
public SaveContentEventArgs(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 content.
Declaration
public bool RequireNewVersion { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|