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
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om