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 AccountInfo and runs and instantiates the persistent procedure AccountInfo.p on the AppServer:
public AccountInfo CreatePO_AccountInfo(int accountNum)
If AccountInfo.p were 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.p were called as a single-run or singleton procedure.
Remote ABL methods to run the non-persistent procedures Add (defined by Add.p) and Remove (defined by Remove.p) on the AppServer:
public void Add(int accountNum, string name)
public void Remove(int accountNum)
Common properties in all .NET proxy objects, excluding the ProcedureType property: