RouteValueDictionary.Remove Method

Definition

Overloads

Remove(String)
Remove(String, Object)

Attempts to remove and return the value that has the specified key from the RouteValueDictionary.

Remove(String)

Source:
RouteValueDictionary.cs
Source:
RouteValueDictionary.cs
Source:
RouteValueDictionary.cs

Removes the element with the specified key from the 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

Parameters

key
String

Returns

Implements

Applies to

Remove(String, Object)

Source:
RouteValueDictionary.cs
Source:
RouteValueDictionary.cs

Attempts to remove and return the value that has the specified key from the 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

Parameters

key
String

The key of the element to remove and return.

value
Object

When this method returns, contains the object removed from the RouteValueDictionary, or null if key does not exist.

Returns

true if the object was removed successfully; otherwise, false.

Applies to