If the RunTimeProperties property has . . .
|
And the property in the Connection object has . . .
|
Then the value of the property is returned from the . . .
|
Not changed
|
Not changed
|
RunTimeProperties class
|
Changed
|
Not changed
|
RunTimeProperties class
|
Not changed
|
Changed
|
Connection object
|
Changed
|
Changed
|
Connection object
|
Connection conn;
bool ret; RunTimeProperties.WaitIfBusy = true; conn = new Connection(url, userid, password, appserverInfo); ret = conn.GetBooleanProperty("PROGRESS.Session.WaitIfBusy"); System.Console.WriteLine("(A) WaitIfBusy= " + ret); RunTimeProperties.WaitIfBusy = false;// change static property ret = conn.WaitIfBusy; // equivalent accessor method System.Console.WriteLine("(B) WaitIfBusy= " + ret); conn.WaitIfBusy = true; // change conn object property ret = conn.GetBooleanProperty("PROGRESS.Session.WaitIfBusy"); System.Console.WriteLine("(C) WaitIfBusy= " + ret); RunTimeProperties.SetBooleanProperty("PROGRESS.Session.WaitIfBusy", false); ret = conn.WaitIfBusy; System.Console.WriteLine("(D) WaitIfBusy= " + ret); RunTimeProperties.WaitIfBusy = true; ret = conn.GetBooleanProperty("PROGRESS.Session.WaitIfBusy"); System.Console.WriteLine("(E) WaitIfBusy= " + ret); |
(A) WaitIfBusy= true
(B) WaitIfBusy= false (C) WaitIfBusy= true (D) WaitIfBusy= true (E) WaitIfBusy= true |