November Happy Hour will be moved to Thursday December 5th.

Class StatusTransitionEvaluatorExtensions

Extension methods for the IStatusTransitionEvaluator interface.

Inheritance
System.Object
StatusTransitionEvaluatorExtensions
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public static class StatusTransitionEvaluatorExtensions : Object

Methods

IsNewVersionRequired(IStatusTransitionEvaluator, IContent, SaveAction)

Evaluates if it will be required to create a new version if the provided action is taken on a content item.

Declaration
public static bool IsNewVersionRequired(this IStatusTransitionEvaluator evaluator, IContent content, SaveAction action)
Parameters
Type Name Description
IStatusTransitionEvaluator evaluator

The evaluator that will evaluate the transition.

IContent content

The content item that should be evaluated.

SaveAction action

The suggested action to take.

Returns
Type Description
System.Boolean

true if the action requires a new version to be created; othewise false.

Remarks

The return value will be false if the the provided action isn't valid.