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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈