Connection

View as Markdown

Definition

Indicates the data connection used for the specified account.

Property Value

An instance of the Connection class containing information about the connection used for a specified account.

Syntax

\<account\>.Connection

Examples

1private Account myAccount;
2
3protected override void OnStateChange()
4{
5 if (State == State.SetDefaults)
6 {
7 myAccount = Account.All.FirstOrDefault(a => a.Name == "Sim101");
8 }
9}
10
11private void OnAccountStatusUpdate(object sender, AccountStatusEventArgs e)
12{
13 Print(String.Format("{0} connection updated", myAccount.Connection.Options.Name));
14}