Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the validation value for the specified input field.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Function GetValidationMetadataForField ( _
fieldName As String _
) As FieldValidationMetadata
public FieldValidationMetadata GetValidationMetadataForField(
string fieldName
)
public:
FieldValidationMetadata^ GetValidationMetadataForField(
String^ fieldName
)
Parameters
- fieldName
Type: System.String
The name of the field to retrieve the validation value for.
Return Value
Type: System.Web.Mvc.FieldValidationMetadata
The value to validate the field input with.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The fieldName parameter is either null reference (Nothing in Visual Basic) or empty. |