ActivityTagsCollection.Item[String] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The object mapped to the key.
Implements
Applies to
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.