TempDataDictionary.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。 如果在 key
中 IDictionary<TKey,TValue>找不到 ,则此方法也返回 false。 运行状况。
实现
例外
key
为 null。