Click or drag to resize

ICaseManagerUpdate Method

Updates the case with any changed values

Namespace:  EdaIntegrationContract
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
void Update(
	ICase theCase
)

Parameters

theCase
Type: EdaIntegrationContract.CaseICase
The case containing the updated data to save
Examples
This example demonstrates how to modify descriptive information about a case.
C#
using EdaIntegrationContract;
using EdaIntegrationContract.Case;

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

        // Open the case that needs to be modified.
        ICase edaCase = edaIntegration.Cases.OpenCaseByName("Case 2");

        // Update the information on the case that needs to be changed and save it.
        edaCase.Description = "An updated description for case 2";
        edaCase.Client = "Client 54";
        edaIntegration.Cases.Update(edaCase);

        // Re-retrieve the data from the database
        ICase edaCase2 = edaIntegration.Cases.OpenCaseByName("Case 2");

        // Display the updated values.
        Console.WriteLine("Name: " + edaCase2.Name);
        Console.WriteLine("Client: " + edaCase2.Client);
        Console.WriteLine("Description: " + edaCase2.Description);
        Console.WriteLine("Last Accessed: " + edaCase2.LastAccessed);
    }
}
/*
This example produces the following results:

   Name: Case 2
   Client: Client 54
   Description: An updated description for case 2
   Last Accessed: 6/29/2014 09:23:12 AM
 */
See Also