ModelStateDictionary.Remove(String) Metodo

Definizione

Rimuove l'oggetto ModelStateEntry con l'oggetto specificato 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

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