Click or drag to resize

CaseManagerOpenCaseByName Method

Retrieves a specific case by its name

Namespace:  Law.EdaIntegration.Case
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax
C#
public Case OpenCaseByName(
	string caseName
)

Parameters

caseName
Type: SystemString
The name of the case

Return Value

Type: Case
A case object
Exceptions
ExceptionCondition
EdaApiException
Examples
This example demonstrates retrieving a specific case by its name
C#
using Law.EdaIntegration;
using Law.EdaIntegration.Case;

class Sample
{
    public static void Main()
    {
        string connectionString = @"Data Source=localhost;Initial Catalog=EDA_Management;Integrated Security=False;User ID=myUserId;Password=myPassword";
        EdaIntegration edaIntegration = new EdaIntegration();
        edaIntegration.InitializeEnvironment(connectionString);

        string caseName = "Case 1";
        Case 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