Click or drag to resize

TagManagerAll Method

Retrieves a list of Tag for a case.

Namespace:  Law.EdaIntegration.Tagging
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax
C#
public IEnumerable<Tag> All()

Return Value

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

        foreach (Tag 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