Click or drag to resize

ICaseManagerCreate Method

Creates a new case

Namespace:  EdaIntegrationContract
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
ICase Create(
	string caseName,
	string caseDirectory = "",
	string client = "",
	string description = "",
	bool applyDefaultFileTypeFilters = false,
	string databaseConnectionString = "",
	Nullable<Guid> caseId = null
)

Parameters

caseName
Type: SystemString
The name of the case to create
caseDirectory (Optional)
Type: SystemString
(optional) The location to store case-related information. By default the system will place the case directory under the $HOME/cases folder
client (Optional)
Type: SystemString
(optional) The name of the client to associate with this case
description (Optional)
Type: SystemString
(optional) A description to use for the case
applyDefaultFileTypeFilters (Optional)
Type: SystemBoolean
(optional) Flag indicating whether default file type filters will be applied for the newly created case.
databaseConnectionString (Optional)
Type: SystemString
(optional) A database connection string to the case database
caseId (Optional)
Type: SystemNullableGuid
(optional) The unique identifier to use to identify this case. By default a new value will be auto-generated.

Return Value

Type: ICase
A list of ICases
Examples
This example demonstrates how to create a new case.
C#
using EdaIntegrationContract;
using EdaIntegrationContract.Case;

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

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

        // Create the new case
        ICase edaCase = edaIntegration.Cases.Create(myCaseName);

        //Display the returned case
        Console.WriteLine("Id: " + edaCase.Name);
        Console.WriteLine("Name: " + edaCase.Name);
        Console.WriteLine("Directory: " + edaCase.CaseDirectory);
    }
}
/*
This example produces the following results:

   Id: f5c3d706-2d5b-4966-b9af-55bb43f3190f
   Name: My New Case
   Directory: \\NetworkDrive\EdAnalyzer\Home\cases\My New Case
 */
See Also