ActivityTagsCollection.Item[String] Property

Definition

Gets or sets a specified collection item.

    When setting a value to this indexer property, the following behavior is observed:
  • If the key previously existed in the collection and the value is null, the collection item matching the key will get removed from the collection.
  • If the key previously existed in the collection and the value is not null, the value will replace the old value stored in the collection.
  • Otherwise, a new item will get added to the collection.
public:
 property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ key); void set(System::String ^ key, System::Object ^ value); };
public object? this[string key] { get; set; }
member this.Item(string) : obj with get, set
Default Public Property Item(key As String) As Object

Parameters

key
String

The key of the value to get or set.

Property Value

Object

The object mapped to the key.

Implements

Applies to