Release 10.1A: OpenEdge Development:
.NET Open Clients

> ## General property accessor methods for
> Connection objects

> You can access `Connection` object properties by property name using the `get` and `set` general purpose methods. When you use these methods, you must call the correct accessor based on the data type of the property. Here is the syntax for these general methods:

> ##### Get property methods syntax

>     public string    GetStringProperty(string propName)
>     public int       GetIntProperty(string propName)
>     public long      GetLongProperty(string propName)
>     public boolean   GetBooleanProperty(String propName)

> ##### Set property methods syntax

>     public void   SetStringProperty(string propName, string propValue)
>     public void   SetIntProperty(string propName, int propValue)
>     public void   SetLongProperty(string propName, long propValue)
>     public void   SetBooleanProperty(string propName, boolean propValue)

> `propName`

> The property name. This can be any of the properties listed in the tables in the "Available properties" section.

> `propValue`

> The value for `propName`.

> ##### Example

> For example, to set the `PROGRESS.Session.InitialConnections` property to 5, use the following method to set an integer property:

>     ConnectObj.SetIntProperty(“PROGRESS.Session.InitialConnections”,5);

> where `ConnectObj` is an instance of the `Progress.Open4GL.Proxy.Connection` class.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095