Click or drag to resize

ITagManagerDelete Method

Delete one more tags from the case.

Namespace:  EdaIntegrationContract.Tagging
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
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 EdaIntegrationContract;
using EdaIntegrationContract.Case;
using EdaIntegrationContract.Tagging;

class Sample
{
    static void Main()
    {
        var edaIntegration = new EdaIntegration().ConnectToExplore();
        ICase edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");

        // Create a tag
        ITag 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