Try our conversational search powered by Generative AI!

Class ContentSaveValidationContext

NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. The context used in IContentSaveValidate<TContent> implementations that are called during validation of content instances.

Inheritance
System.Object
ContentSaveValidationContext
Inherited Members
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.Validation
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public class ContentSaveValidationContext

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

Extension Methods