RouteValueDictionary.Remove Méthode

Définition

Surcharges

Remove(String)
Remove(String, Object)

Tente de supprimer et de retourner la valeur ayant la clé spécifiée du RouteValueDictionary.

Remove(String)

Source:
RouteValueDictionary.cs
Source:
RouteValueDictionary.cs

Supprime l'élément avec la clé spécifiée d'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

Paramètres

key
String

Retours

Implémente

S’applique à

Remove(String, Object)

Source:
RouteValueDictionary.cs

Tente de supprimer et de retourner la valeur ayant la clé spécifiée du 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

Paramètres

key
String

Clé de l'élément à supprimer et à retourner.

value
Object

Lorsque cette méthode est retournée, contient l’objet supprimé du , ou null si la RouteValueDictionaryclé n’existe pas.

Retours

true si l'objet a été correctement supprimé ; sinon, false.

S’applique à