| ICaseManagerOpenCaseByName Method |
Retrieves a specific case by its name
Namespace:
EdaIntegrationContract
Assembly:
EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax 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:
ICaseA case object
Exceptions Examples
This example demonstrates retrieving a specific case by its name
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);
}
}
See Also