The GetListAsync<T> method returns a list of T elements for a specified list name and type.
Namespace – ABSuite.AccessLayer.Connector.Core
Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)
Syntax
Task<IEnumerable<T>> GetListAsync<T>(
string listName
)Argument
listName – System.String
This argument provides the name of the list.
Using the IRtConnection Interface for the GetListAsync<T> Method (String)
The following code is an example of using the GetListAsync<T> method (String):
connection.GetListAsync<NameIdInfoModel>("CUST.Customers").ContinueWith
((t) =>
{
var myList = t.Result;
foreach(NameIdInfoModel item in myList)
{
// Process the item
}
});