Class WorkflowState

An immutable class representing an individual state within a workflow.

Inheritance
System.Object
WorkflowState
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Social.Moderation.Core
Assembly: EPiServer.Social.Moderation.Core.dll
Version: 1.5.4
Syntax
public class WorkflowState

Constructors

WorkflowState(String)

Constructor

Declaration
public WorkflowState(string state)
Parameters
Type Name Description
System.String state

Name identifying this state

Properties

Name

Gets or sets the name identifying this state.

Declaration
public string Name { get; }
Property Value
Type Description
System.String

Methods

Equals(Object)

Compares this instance with another object.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

the object to compare with this instance.

Returns
Type Description
System.Boolean

Returns true if this instance and another specified object, of type WorkflowState have the same value of the underlying state string, else returns false.

Overrides
System.Object.Equals(System.Object)

GetHashCode()

Returns the hash code of the underlying state name of this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

A 32-bit signed integer hash code.

Overrides
System.Object.GetHashCode()

ToString()

Returns a string representation of this instance.

Declaration
public override string ToString()
Returns
Type Description
System.String

Returns the underlying name of this instance.

Overrides
System.Object.ToString()

Operators

Equality(WorkflowState, WorkflowState)

Overloads the equality operator on the WorkflowState class.

Declaration
public static bool operator ==(WorkflowState a, WorkflowState b)
Parameters
Type Name Description
WorkflowState a

The operand on the left side of the equality operator.

WorkflowState b

The operand on the right side of the equality operator.

Returns
Type Description
System.Boolean

Returns true if the both objects are null or the same instance or have the same value of the underlying state string. Returns false if either object is null or both objects have different values of the underlying state string.

Inequality(WorkflowState, WorkflowState)

Overloads the inequality operator on the WorkflowState class.

Declaration
public static bool operator !=(WorkflowState a, WorkflowState b)
Parameters
Type Name Description
WorkflowState a

The operand on the left side of the inequality operator.

WorkflowState b

The operand on the right side of the inequality operator.

Returns
Type Description
System.Boolean

Returns true if either object is null or both objects have different values of the underlying state string. Returns false if the both objects are null or the same instance or have the same value of the underlying state string.

arrow_upward