ModelStateDictionary.IsValidField Method
Visual Studio 2010
Determines whether there are any ModelError objects that are associated with or prefixed with the specified key.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Parameters
- key
- Type: System.String
The key.
Return Value
Type: System.Booleantrue if the model-state dictionary contains a value that is associated with the specified key; otherwise, false.
| Exception | Condition |
|---|---|
| ArgumentNullException | The key parameter is Nothing. |
Community Additions
ADD
Show: