Sample AppObject
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
The methods in this section comprise the definition
of a sample .NET AppObject, Account, as shown:
- The AppObject constructors that connect to an Application Service:
public Account(Connection connectObj) public Account(string urlString, string userId, string password, string appServerInfo) public Account(string userId, string password, string appServerInfo) public Account( ) - A SubAppObject class factory method that creates a SubAppObject called
Tax:public Tax CreateAO_Tax( ) - A ProcObject class factory method that creates a ProcObject called
AccountInfoand runs and instantiates the persistent procedureAccountInfo.pon the application server:public AccountInfo CreatePO_AccountInfo(int accountNum)If
AccountInfo.pwere to be run as a single-run or singleton procedure, the parameter in its main block would have to be removed and passed to its internal procedures or user-defined functions directly. The class factory method would then look like this:public AccountInfo CreatePO_AccountInfo( )See Sample ProcObject for an example of how the methods for the internal procedures and user-defined functions of might look if
AccountInfo.pwere called as a single-run or singleton procedure.
- Remote ABL methods to run the non-persistent procedures
Add(defined byAdd.p) andRemove(defined byRemove.p) on the application server:public void Add(int accountNum, string name) public void Remove(int accountNum)
- Common properties in all .NET proxy
objects, excluding the
ProcedureTypeproperty:public string ConnectionId public string ProcReturnString public string RequestId public string SSLSubjectName - Common methods in all .NET proxy objects:
public void CancelAllRequests( ) public void Dispose( )