'Declaration
Public ReadOnly Default Property Item( _ ByVal index As Integer _ ) As ClarifyDataRow
public ClarifyDataRow this[ int index ]; {get;}
This property provides the ability to access a specific ClarifyDataRow in the collection by using the following syntax: gCase[0] (gCase(0) in Visual Basic).
To iterate over the collection of rows in a generic, use the more efficient foreach() syntax (For Each in Visual Basic). Please see the example for more details.
To iterate over the collection of rows in a generic, use the more efficient foreach() syntax (For Each in Visual Basic). Please see the example for more details.
// Create the DataSet ClarifyDataSet dataSet = new ClarifyDataSet(session); // Traverse from the user's objid ClarifyGeneric gQueue = dataSet.CreateGeneric( (int)session["user.id"], "user", "user_assigned2queue" ); // Query the data and print it to the console gQueue.Query(); foreach( ClarifyDataRow row in gQueue ) { Console.WriteLine("Queue title: {0}", row["title"] ); }
' Create the DataSet Dim dataSet As New ClarifyDataSet(session) ' Traverse from the user's objid Dim gQueue As ClarifyGeneric = session.CreateGeneric( _ session("user.id"), "user", "user_assigned2queue" ) ' Query the data and print it to the console gQueue.Query() For Each row As ClarifyDataRow In gQueue Console.WriteLine("Queue title: {0}", row("title") ) Next
// Create the DataSet ClarifyDataSet dataSet = new ClarifyDataSet(session); // Traverse from the user's objid ClarifyGeneric gQueue = dataSet.CreateGeneric( (int)session["user.id"], "user", "user_assigned2queue" ); // Query the data and print it to the console gQueue.Query(); foreach( ClarifyDataRow row in gQueue ) { Console.WriteLine("Queue title: {0}", row["title"] ); }
' Create the DataSet Dim dataSet As New ClarifyDataSet(session) ' Traverse from the user's objid Dim gQueue As ClarifyGeneric = session.CreateGeneric( _ session("user.id"), "user", "user_assigned2queue" ) ' Query the data and print it to the console gQueue.Query() For Each row As ClarifyDataRow In gQueue Console.WriteLine("Queue title: {0}", row("title") ) Next
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family