Class StatusTransition
Inheritance
System.Object
StatusTransition
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public sealed class StatusTransition : ValueType, IEquatable<StatusTransition>
Constructors
StatusTransition(VersionStatus, VersionStatus, Boolean)
Declaration
public StatusTransition(VersionStatus currentStatus, VersionStatus nextStatus, bool createNewVersion)
Parameters
Fields
Invalid
Declaration
public static readonly StatusTransition Invalid
Field Value
Properties
CreateNewVersion
Gets a value indicating if a new content version should be created as a part of
the transition.
Declaration
public bool CreateNewVersion { get; }
Property Value
Type |
Description |
System.Boolean |
|
CurrentStatus
Declaration
public VersionStatus CurrentStatus { get; }
Property Value
NextStatus
Declaration
public VersionStatus NextStatus { get; }
Property Value
VersionedContent
Gets an value indicating if the transition represents a transition for an content item implementing IVersionable
Declaration
public bool VersionedContent { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Equals(StatusTransition)
Declaration
public bool Equals(StatusTransition other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
IsStatusChange()
Gets an value indicating if the transition represents a change of the VersionStatus.
Declaration
public bool IsStatusChange()
Returns
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Unversioned(Boolean)
Gets a StatusTransition that represents the standard transition for an Unversioned content item.
Declaration
public static StatusTransition Unversioned(bool isNewContent)
Parameters
Type |
Name |
Description |
System.Boolean |
isNewContent |
Value indicating if the unversioned content never been saved before
|
Returns
Operators
Equality(StatusTransition, StatusTransition)
Declaration
public static bool operator ==(StatusTransition left, StatusTransition right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(StatusTransition, StatusTransition)
Declaration
public static bool operator !=(StatusTransition left, StatusTransition right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<>
Extension Methods