ActivityTagsCollection.Item[String] 屬性

定義

取得或設定指定的集合項目。

    When setting a value to this indexer property, the following behavior is observed:
  • 如果先前存在於集合中的索引鍵且值為 null,則符合索引鍵的集合專案將會從集合中移除。
  • 如果先前存在於集合中的索引鍵,且值不是 null,該值將會取代儲存在集合中的舊值。
  • 否則,會將新專案新增至集合。
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

參數

key
String

要取得或設定之值的索引鍵。

屬性值

對應至索引鍵的物件。

實作

適用於