IRtConnection.GetList Method (String, String)

The GetList method (String, String) returns a collection of types defined by the class name.

Namespace – ABSuite.AccessLayer.Connector.Core

Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)

Syntax

IEnumerable GetList(
   string listName,
   string className
)

Arguments

Return Value

This method returns a collection of types defined by the class name.

Using the IRtConnection Interface for the GetList Method (String, String)

The following code is an example of using the GetList method (String, String):

// Load the PROD ispec, which returns the PROD.PRODUCTS list
// Access the list items according to the type definition for the list
       LoadIspec("PROD");
IEnumerable myList = ABSConnection.DataHandler.GetList("PROD.PRODUCTS", “NameIdInfoModel”);
       NameIdInfoModel item = myList.elementAt(0) as NameIdInfoModel;
       string id = item.Id;
       string name = item.Name;