RouteValueDictionary.Remove Metodo

Definizione

Overload

Remove(String)
Remove(String, Object)

Tenta di rimuovere e restituire il valore con la chiave specificata da RouteValueDictionary.

Remove(String)

Origine:
RouteValueDictionary.cs
Origine:
RouteValueDictionary.cs

Rimuove l'elemento con la chiave specificata da 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

Parametri

key
String

Restituisce

Implementazioni

Si applica a

Remove(String, Object)

Origine:
RouteValueDictionary.cs

Tenta di rimuovere e restituire il valore con la chiave specificata da 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

Parametri

key
String

Chiave dell'elemento da rimuovere e restituire.

value
Object

Quando questo metodo restituisce, contiene l'oggetto rimosso dall'oggetto RouteValueDictionaryo null se la chiave non esiste.

Restituisce

true se l'oggetto è stato rimosso correttamente; in caso contrario, false.

Si applica a