Gets telephone number that is assigned for user.


SYNTAX


public string TelephoneNumber { get; }


EXAMPLE


 An object ‘User’ for the currently selected account is created in the next example. All its properties are outputted further, including TelephoneNumber property.
 
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using PTLRuntime.NETScript;

namespace UserProperties
{
  public class UserProperties : NETStrategy
  {
    Account myAcc; //The 'Account' object creation.
    User myUser;//The 'User' object creation.
    
    public override void Init()
    {
      myAcc = Accounts.Current; //The initialization of the account that is currently used.
      
      myUser = myAcc.User; //The user initialization.
      //outputting of all the user properties.
      Print(
        "\nLogin :\t" + myUser.Login+
        "\nId :\t" + myUser.Id+
        "\nEmail :\t" + myUser.Email+
        "\nFirstName :\t"+myUser.FirstName+
        "\nMiddleName :\t"+myUser.MiddleName+
        "\nLastName :\t"+myUser.LastName+
        "\nTelephoneNumber :\t"+myUser.TelephoneNumber+
        "\nClientType :\t"+myUser.ClientType+
        "\nIsBroker :\t"+myUser.IsBroker
      );
    }        
  }
}