Click or drag to resize

TagManagerDelete Method

Delete one more tags from the case.

Namespace:  Law.EdaIntegration.Tagging
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax
C#
public void Delete(
	IEnumerable<int> idsToDelete
)

Parameters

idsToDelete
Type: System.Collections.GenericIEnumerableInt32
The list of unique identifiers of the tags to be deleted.
Examples
This example demonstrates deleting a tag from a case.
C#
using Law.EdaIntegration;
using Law.EdaIntegration.Case;
using Law.EdaIntegration.Tagging;

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);

        Case edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");

        // Create a tag
        Tag tag = edaCase.Tags.Create("Privileged");
        Console.WriteLine("Id: {0}", tag.Id);
        Console.WriteLine("Name: {0}",tag.Name);

        // Delete the tag
        List<int> itemsToDelete = new List<int> { tag.Id };
        edaCase.Tags.Delete(itemsToDelete);
        Console.WriteLine("Tag deleted");  
    }
}
/*
This example produces the following results:

Id: 1
Name: Privileged
Tag deleted
 */
See Also