Click or drag to resize

ICaseManagerAll Method

Retrieves a list of all the active cases

Namespace:  EdaIntegrationContract
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
IEnumerable<ICaseListing> All()

Return Value

Type: IEnumerableICaseListing
A list of ICase
Examples
The following example demonstrates retrieving the list of cases and printing each case name to the system console.
C#
using EdaIntegrationContract;
using EdaIntegrationContract.Case;

class Sample
{
    public static void Main()
    {
        var edaIntegration = new EdaIntegration().ConnectToExplore();

        Console.WriteLine("Name                            Client                     Description");
        Console.WriteLine("------------------------------  -------------------------  -------------------------");

        foreach (ICaseListing caseListing in edaIntegration.Cases.All())
        {
            Console.WriteLine("{0}  {1}  {2}",
                caseListing.Name.Substring(0, caseListing.Name.Length > 30 ? 30 : caseListing.Name.Length).PadRight(30),
                caseListing.Client.Substring(0, caseListing.Client.Length > 30 ? 30 : caseListing.Client.Length).PadRight(30),
                caseListing.Description.Substring(0, caseListing.Description.Length > 30 ? 30 : caseListing.Description.Length).PadRight(30)
            );
        }
    }
}
/*
This example produces the following results:
   Name                            Client                     Description
   ------------------------------  -------------------------  -------------------------
   Case 1                          Client 123                 The first case
   Case 2                          Client 456                 The second case
   Case 3                          Client 123                 The third case
 */
See Also