Executions

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Add On > Account >

Executions

Previous page Return to chapter overview Next page

Definition

A collection of Execution objects generated for the specified account

 

Property Value

An Collection of Execution objects

 

Syntax

<Account>.Executions

 

Examples

ns


private Account myAccount;
 
protected override void OnStateChange()
{
  if (State == State.SetDefaults)
  {
      // Initialize myAccount
  }

}
 
private void OnExecutionUpdate(object sender, ExecutionEventArgs e)
{
  foreach (Execution execution in myAccount.Executions)
  {
      Print(String.Format("Execution triggered for Order {0}", execution.Order));
  }
}