語言

HttpRequestOptions.IDictionary<String,Object>.Add 方法

定義

在 中加入一個包含所提供鍵值與值的元素。IDictionary<TKey,TValue>

 virtual void System.Collections.Generic.IDictionary<System.String,System.Object>.Add(System::String ^ key, System::Object ^ value) = System::Collections::Generic::IDictionary<System::String ^, System::Object ^>::Add;
void IDictionary<string,object>.Add(string key, object value);
abstract member System.Collections.Generic.IDictionary<System.String,System.Object>.Add : string * obj -> unit
override this.System.Collections.Generic.IDictionary<System.String,System.Object>.Add : string * obj -> unit
Sub Add (key As String, value As Object) Implements IDictionary(Of String, Object).Add

參數

key
String

要用來作為要加元素鍵的物件。

value
Object

用來作為要加元素值的物件。

實作

備註

此成員為明確介面成員實作。 它只能在實 HttpRequestOptions 例投射到 IDictionary<TKey,TValue> 介面時使用。

適用於