ModelStateDictionary.Remove(String) Metodo

Definizione

Rimuove l'oggetto ModelStateEntry con l'oggetto specificato key.

C#
public bool Remove (string key);

Parametri

key
String

Chiave.

Restituisce

true se l'elemento viene rimosso; in caso contrario, false. Questo metodo restituisce false anche se la chiave non è stata trovata.

Si applica a

Prodotto Versioni
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0