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> 介面時,才能使用這個成員。

適用於