Accounts
property
Represents access to collection of all available accounts.
Syntax
public IAccountsCollection Accounts { get; }
Example
An object ‘Account’ that is currently used is created in the next example. Equity of the current ‘Account’ further outputted.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using PTLRuntime.NETScript;
namespace AccountProperties
{
public class AccountProperties : NETStrategy
{
public override void Init()
{
Account acc = Accounts.Current; //creation and initialization of the object ‘Account’.
Print("Name : "+ acc.Name+"\n");//outputting of all the 'Account' properties
}
}
}
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.
NETScript methods
- Alert (object[] args)
- Comment (object[] args)
- ConvertUTCTimeToSelectedTimeZone (DateTime timeUTC)
- CreateTimer (TimerCallback callback)
- CreateTimer (TimerCallback callback, object state, int dueTime, int period)
- CreateTimer (TimerCallback callback, object state, long dueTime, long period)
- CreateTimer (TimerCallback callback, object state, TimeSpan dueTime, TimeSpan period)
- CreateTimer (TimerCallback callback, object state, uint dueTime, uint period)
- GetHashedPassword (string password)
- GetHistoricalData (HistoricalDataRequest request)
- GetLastError ()
- GetLastErrorDescription ()
- IsTesting ()
- OnPaintChart (object sender, PaintChartEventArgs args)
- OnStartStatement (int id, int startX, int startY, int endX, int endY, string signature)
- PlaySound (string fileName)
- Print (object[] args)
- QueueUserWorkItem (WaitCallback callBack)
- QueueUserWorkItem (WaitCallback callBack, object state)
- QueueUserWorkItem (WaitCallback callBack, object state, ApartmentState apartmentState)
- SendEmail (string address, string subject, string body, string filename)
- SendEmail (string address, string subject, string body)
- SendEmail (string subject, string body)
NETScript properties
NETScript constructors
NETScript fields