Click or drag to resize

CaseManagerCreate Method

Creates a new case in Early Data Analyzer using the current default case properties

Namespace:  Law.EdaIntegration.Case
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax
C#
public Case Create(
	CaseProcessingType caseProcessingType,
	string caseName,
	string caseDirectory = "",
	string client = "",
	string description = "",
	bool applyDefaultFileTypeFilters = false,
	string databaseConnectionString = ""
)

Parameters

caseProcessingType
Type: Law.EdaIntegration.CaseCaseProcessingType
default CaseProcessingType
caseName
Type: SystemString
The name of the new case
caseDirectory (Optional)
Type: SystemString
The full path to the directory where all case data will be stored such as search index, content storage and diagnostic logs. This defaults to {Early Data Analyzer Home Directory}\cases\{case name} if no value is provided.
client (Optional)
Type: SystemString
An optional client name to be associated with the case
description (Optional)
Type: SystemString
An optional description for the case
applyDefaultFileTypeFilters (Optional)
Type: SystemBoolean
Indicates whether to apply the default File Type Filter inclusions and exclusions to the case when it is created.
databaseConnectionString (Optional)
Type: SystemString
An optional database connection to use for the case. Otherwise a database is created using caseName

Return Value

Type: Case
The case object added to Early Data Analyzer
Exceptions
ExceptionCondition
EdaApiException thrown if the requested case already exists or if the supplied values are invalid
Examples
This example demonstrates how to create a new case.
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);

        // Values to use for the new case
        string myCaseName = @"My New Case";
        string myClient = @"Client 123";

        // Create the new case
        Case edaCase = edaIntegration.Cases.Create(caseName: myCaseName, client: myClient);

        //Display the returned case
        Console.WriteLine("Id: " + edaCase.Name);
        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:

   Id: f5c3d706-2d5b-4966-b9af-55bb43f3190f
   Name: Case 1
   Client: Client 123
   Description:
   Last Accessed:
 */
See Also