ModelStateDictionary.Remove(String) Méthode

Définition

Supprime le ModelStateEntry avec le spécifié key.

public:
 bool Remove(System::String ^ key);
public bool Remove (string key);
member this.Remove : string -> bool
Public Function Remove (key As String) As Boolean

Paramètres

key
String

Clé.

Retours

true si la suppression de l'élément réussit ; sinon, false. Cette méthode retourne false également si la clé est introuvable.

S’applique à