Class ContentSaveValidationContext
The context used in IContentSaveValidate<TContent> implementations that are called during save validation of content instances.
Inheritance
System.Object
ContentSaveValidationContext
Namespace: EPiServer.Validation
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class ContentSaveValidationContext : Object
Constructors
ContentSaveValidationContext(SaveAction, Boolean)
Creates a new instance of ContentSaveValidationContext
Declaration
public ContentSaveValidationContext(SaveAction saveAction, bool newVersionRequired)
Parameters
Type | Name | Description |
---|---|---|
SaveAction | saveAction | The save action used at save operation |
System.Boolean | newVersionRequired | Specifies if a new version is required for the save operation |
Properties
NewVersionRequired
Indicates if the save will cause a new version to be created.
Declaration
public bool NewVersionRequired { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
SaveAction
The save action used when content was updated.
Declaration
public SaveAction SaveAction { get; }
Property Value
Type | Description |
---|---|
SaveAction |