Class StartInstanceCancelledEventArgs

This event argument is used with InstanceStartingCancelled event when starting of an instance is cancelled.

Inheritance
System.Object
System.EventArgs
StartInstanceCancelledEventArgs
Inherited Members
System.EventArgs.Empty
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.WorkflowFoundation
Assembly: EPiServer.WorkflowFoundation.dll
Version: 8.11.0
Syntax
public class StartInstanceCancelledEventArgs : EventArgs

Constructors

StartInstanceCancelledEventArgs(WorkflowDefinition, String)

Initializes a new instance of the StartInstanceCancelledEventArgs class.

Declaration
public StartInstanceCancelledEventArgs(WorkflowDefinition definition, string cancelReason)
Parameters
Type Name Description
WorkflowDefinition definition

The definition that an instance was to be started of

System.String cancelReason

The reason for the cancellation

Properties

CancelReason

Gets or sets a message for why the action was cancelled

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

The reason why the action was cancelled

WorkflowDefinition

Gets the workflow definition that an instance was to be created of.

Declaration
public WorkflowDefinition WorkflowDefinition { get; }
Property Value
Type Description
WorkflowDefinition

The workflow definition.