Struct StatusTransition
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public struct StatusTransition : 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 |
|
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
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 |
|
Overrides
System.ValueType.ToString()
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<T>
Extension Methods