FormContext.GetValidationMetadataForField Method (String)
Visual Studio 2010
Retrieves the validation value for the specified input field.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Function GetValidationMetadataForField ( _ fieldName As String _ ) As FieldValidationMetadata
Parameters
- fieldName
- Type: System.String
The name of the field to retrieve the validation value for.
| Exception | Condition |
|---|---|
| ArgumentException | The fieldName parameter is either Nothing or empty. |
Community Additions
ADD
Show: