HttpRequestOptions.IDictionary<String,Object>.Remove(String) 方法
定义
从 IDictionary<TKey,TValue> 中移除包含指定键的元素。Removes the element with the specified key from the IDictionary<TKey,TValue>.
virtual bool System.Collections.Generic.IDictionary<System.String,System.Object>.Remove(System::String ^ key) = System::Collections::Generic::IDictionary<System::String ^, System::Object ^>::Remove;
bool IDictionary<string,object>.Remove (string key);
abstract member System.Collections.Generic.IDictionary<System.String,System.Object>.Remove : string -> bool
override this.System.Collections.Generic.IDictionary<System.String,System.Object>.Remove : string -> bool
Function Remove (key As String) As Boolean Implements IDictionary(Of String, Object).Remove
参数
- key
- String
要移除的元素的键。The key of the element to remove.
返回
如果该元素已成功移除,则为 true;否则为 false。true if the element is successfully removed; otherwise, false. 如果在原始 false 中没有找到 key,此方法也会返回 IDictionary<TKey,TValue>。This method also returns false if key was not found in the original IDictionary<TKey,TValue>.
实现
注解
此成员是显式接口成员的实现。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.