Click or drag to resize

ITagManagerAll Method

Retrieves a list of ITag for a case.

Namespace:  EdaIntegrationContract.Tagging
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 1.0
Syntax
C#
IEnumerable<ITag> All()

Return Value

Type: IEnumerableITag
A list of ITag items.
Examples
The following example demonstrates retrieving a list of tags for 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 tags
        edaCase.Tags.Create("Privileged");
        edaCase.Tags.Create("Responsive");        

        foreach (ITag tag in edaCase.Tags.All())
        {
            Console.WriteLine("Id: "   + tag.Id);
            Console.WriteLine("Name: " + tag.Name);              
        }
    }
}
/*
This example produces the following results:

Id: 1
Name: Privileged
Id: 2
Name: Responsive
 */
See Also