Export (0) Print
Expand All

FormContext.GetValidationMetadataForField Method (String)

Returns the validation value for the specified input field.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

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.

ExceptionCondition
ArgumentException

The fieldName parameter is either null or empty.

Show:
© 2014 Microsoft