TempDataDictionary.Remove(String) 方法

定义

从 对象中删除具有指定键的 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。 如果在 keyIDictionary<TKey,TValue>找不到 ,则此方法也返回 false。 运行状况。

实现

例外

key 为 null。

适用于