共用方式為


RouteValueDictionary.Remove 方法

定義

多載

Remove(String)
Remove(String, Object)

嘗試從 RouteValueDictionary 移除和傳回具有指定之索引鍵的值。

Remove(String)

來源:
RouteValueDictionary.cs
來源:
RouteValueDictionary.cs

IDictionary<TKey,TValue> 中移除具有指定之索引鍵的項目。

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

傳回

實作

適用於

Remove(String, Object)

來源:
RouteValueDictionary.cs

嘗試從 RouteValueDictionary 移除和傳回具有指定之索引鍵的值。

public:
 bool Remove(System::String ^ key, [Runtime::InteropServices::Out] System::Object ^ % value);
public bool Remove (string key, out object value);
public bool Remove (string key, out object? value);
member this.Remove : string * obj -> bool
Public Function Remove (key As String, ByRef value As Object) As Boolean

參數

key
String

要移除和傳回的項目索引鍵。

value
Object

當這個方法傳回時,會包含從 RouteValueDictionary 中移除的物件,如果索引鍵不存在,則 null 為 。

傳回

如果已成功移除物件,則為 true,否則為 false

適用於