RouteValueDictionary.Remove(String) 方法

定义

从字典中移除具有指定键的值。

public:
 virtual bool Remove(System::String ^ key);
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

要移除的元素的键。

返回

Boolean

如果找到并移除该元素,则为 true;否则为 false。 如果在字典中未找到 key,此方法会返回 false

实现

适用于

另请参阅