HttpRequestOptions.IDictionary<String,Object>.Add(String, Object) 方法
定义
向 IDictionary<TKey,TValue> 添加一个带有所提供的键和值的元素。Adds an element with the provided key and value to the 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
用作要添加的元素的键的对象。The object to use as the key of the element to add.
- value
- Object
用作要添加的元素的值的对象。The object to use as the value of the element to add.
实现
注解
此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 HttpRequestOptions 实例被强制转换为 IDictionary<TKey,TValue> 接口时使用。It can be used only when the HttpRequestOptions instance is cast to an IDictionary<TKey,TValue> interface.