ScriptTask.CreateEvent Method

Create an event to be executed
<ID("CreateEvent", (int)e.CreateEvent)> _ 
Public Overridable Function CreateEvent( _ 
ByVal obj As Object, _ 
Optional ByVal isSequential As Boolean = true, _ 
Optional ByVal addToLast As Boolean = true, _ 
Optional ByVal priority As Integer = 0 _ 
) As Integer
This language is not supported or no code example is available.
[ID("CreateEvent", (int)e.CreateEvent)] 
public virtual int CreateEvent( 
object obj
bool isSequential = true, 
bool addToLast = true, 
int priority = 0 
)
This language is not supported or no code example is available.

Parameters

obj
object

An object containing information to be used when this task will be executed

isSequential
bool

Flag indicating whether this event must run only after previous event finishes

addToLast
bool

Flag indicating whether this event should be added to last

priority
int

Priority. 0: Normal, 1: AboveNormal, 2: Highest

Return Value

int

If success returns 0 else returns > 0 (1: Client Task Events cannot be created, 2: Script Task Server is not running)

.NET Framework

Supported in: 4.6.2, 4.7

In this article

Definition