ModelStateDictionary.ClearValidationState(String) Method

Definition

Clears ModelStateDictionary entries that match the key that is passed as parameter.

public:
 void ClearValidationState(System::String ^ key);
public void ClearValidationState (string key);
member this.ClearValidationState : string -> unit
Public Sub ClearValidationState (key As String)

Parameters

key
String

The key of ModelStateDictionary to clear.

Applies to