你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
SearchDocument.Remove(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从 IDictionary<TKey,TValue> 中移除包含指定键的元素。
public bool Remove(string key);
abstract member Remove : string -> bool
override this.Remove : string -> bool
Public Function Remove (key As String) As Boolean
参数
- key
- String
要移除的元素的键。
返回
如果该元素已成功移除,则为 true
;否则为 false
。 如果在原始 false
中没有找到 key
,此方法也会返回 IDictionary<TKey,TValue>。
实现
例外
key
为 null
。