Click or drag to resize

ITagManagerCreate Method

Creates a new tag for a case.

Namespace:  EdaIntegrationContract.Tagging
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
ITag Create(
	string tagName
)

Parameters

tagName
Type: SystemString
The name of the tag to be created.

Return Value

Type: ITag
The tag object created.
Remarks
Tags with duplicate names are not allowed to exist in a case.
Examples
The following example demonstrates how to create a new tag.
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);
    }
}
/*
This example produces the following results:

Id: 1
Name: Privileged
 */
See Also