Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Class ContentSaveValidationContext

The context used in IContentSaveValidate<TContent> implementations that are called during save 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: 11.20.7
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