Name

<< Click to Display Table of Contents >>

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

Name

Previous page Return to chapter overview Next page

Definition

Indicates the name of the specified account

 

Property Value

An string representing the name of the account

 

Syntax

<Account>.Name

 

Example

ns

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

}
 
private void OnAccountStatusUpdate(object sender, AccountStatusEventArgs e)
{
  // Print the name of each account updated
  Print(String.Format("{0} account updated", myAccount.Name));
}