AttributeDictionary.Add 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Add(KeyValuePair<String,String>) | |
Add(String, String) |
Add(KeyValuePair<String,String>)
將項目加入至 ICollection<T>。
public:
virtual void Add(System::Collections::Generic::KeyValuePair<System::String ^, System::String ^> item);
public void Add (System.Collections.Generic.KeyValuePair<string,string> item);
public void Add (System.Collections.Generic.KeyValuePair<string,string?> item);
abstract member Add : System.Collections.Generic.KeyValuePair<string, string> -> unit
override this.Add : System.Collections.Generic.KeyValuePair<string, string> -> unit
Public Sub Add (item As KeyValuePair(Of String, String))
參數
- item
- KeyValuePair<String,String>
實作
適用於
Add(String, String)
將隨附有索引鍵和值的項目加入至 IDictionary<TKey,TValue>。
public:
virtual void Add(System::String ^ key, System::String ^ value);
public void Add (string key, string value);
public void Add (string key, string? value);
abstract member Add : string * string -> unit
override this.Add : string * string -> unit
Public Sub Add (key As String, value As String)
參數
- key
- String
- value
- String