ModelStateDictionary.GetFieldValidationState(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the aggregate ModelValidationState for items starting with the
specified key
.
public:
Microsoft::AspNetCore::Mvc::ModelBinding::ModelValidationState GetFieldValidationState(System::String ^ key);
public Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState GetFieldValidationState (string key);
member this.GetFieldValidationState : string -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState
Public Function GetFieldValidationState (key As String) As ModelValidationState
Parameters
- key
- String
The key to look up model state errors for.
Returns
Returns Unvalidated if no entries are found for the specified key, Invalid if at least one instance is found with one or more model state errors; Valid otherwise.