| 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 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:
CaseThe case object added to Early Data Analyzer
Exceptions Exception | Condition |
---|
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.
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 myCaseName = @"My New Case";
string myClient = @"Client 123";
Case edaCase = edaIntegration.Cases.Create(caseName: myCaseName, client: myClient);
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);
}
}
See Also