Click or drag to resize

ICaseManagerOpenCaseByName Method

Retrieves a specific case by its name

Namespace:  EdaIntegrationContract
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 1.0
Syntax
C#
ICase OpenCaseByName(
	string caseName,
	bool runMigrations = false
)

Parameters

caseName
Type: SystemString
The name of the case
runMigrations (Optional)
Type: SystemBoolean
Indicates whether to run any schema/data migrations that are needed when opening the case.

Return Value

Type: ICase
A case object
Exceptions
Examples
This example demonstrates retrieving a specific case by its name
C#
using EdaIntegrationContract;
using EdaIntegrationContract.Case;

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

        string caseName = "Case 1";
        ICase edaCase = edaIntegration.Cases.OpenCaseByName(caseName);
        Console.WriteLine("Name: " + edaCase.Name);
        Console.WriteLine("Client: " + edaCase.Client);
        Console.WriteLine("Description: " + edaCase.Description);
        Console.WriteLine("Last Accessed: " + edaCase.LastAccessed);
    }
}
/*
This example produces the following results:

   Name: Case 1
   Client: Client 123
   Description:
   Last Accessed: 6/27/2014 10:59:30 PM
 */
See Also