Share via


ITagCollector.Add Method

Definition

Overloads

Add(String, Object)

Adds a tag.

Add(String, Object, DataClassificationSet)

Adds a tag.

Add(String, Object)

Source:
ITagCollector.cs

Adds a tag.

public:
 void Add(System::String ^ tagName, System::Object ^ tagValue);
public void Add (string tagName, object? tagValue);
abstract member Add : string * obj -> unit
Public Sub Add (tagName As String, tagValue As Object)

Parameters

tagName
String

The name of the tag to add.

tagValue
Object

The value of the tag to add.

Exceptions

tagName is null.

tagName is empty or contains exclusively whitespace, or when a tag of the same name has already been added.

Applies to

Add(String, Object, DataClassificationSet)

Source:
ITagCollector.cs

Adds a tag.

public:
 void Add(System::String ^ tagName, System::Object ^ tagValue, Microsoft::Extensions::Compliance::Classification::DataClassificationSet ^ classifications);
public void Add (string tagName, object? tagValue, Microsoft.Extensions.Compliance.Classification.DataClassificationSet classifications);
abstract member Add : string * obj * Microsoft.Extensions.Compliance.Classification.DataClassificationSet -> unit
Public Sub Add (tagName As String, tagValue As Object, classifications As DataClassificationSet)

Parameters

tagName
String

The name of the tag to add.

tagValue
Object

The value of the tag to add.

classifications
DataClassificationSet

The data classifications of the tag value.

Exceptions

tagName is null.

tagName is empty or contains exclusively whitespace, or when a tag of the same name has already been added.

Applies to