FormContext Class

 

Encapsulates information that is required in order to validate and process the input data from an HTML form.

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

Inheritance Hierarchy

System.Object
  System.Web.Mvc.FormContext

Syntax

public class FormContext
public ref class FormContext 
type FormContext = class end
Public Class FormContext

Constructors

Name Description
System_CAPS_pubmethod FormContext()

Initializes a new instance of the FormContext class.

Properties

Name Description
System_CAPS_pubproperty FieldValidators

Gets the field validators for the form.

System_CAPS_pubproperty FormId

Gets or sets the form identifier.

System_CAPS_pubproperty ReplaceValidationSummary

Determines whether client validation errors should be dynamically added to the validation summary.

System_CAPS_pubproperty ValidationSummaryId

Gets or sets the identifier for the validation summary.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetJsonValidationMetadata()

Returns a serialized object that contains the form identifier and field-validation values for the form.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod GetValidationMetadataForField(String)

Returns the validation value for the specified input field.

System_CAPS_pubmethod GetValidationMetadataForField(String, Boolean)

Returns the validation value for the specified input field and a value that indicates what to do if the validation value is not found.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod RenderedField(String)

Returns a value that indicates whether the specified field has been rendered in the form.

System_CAPS_pubmethod RenderedField(String, Boolean)

Sets a value that indicates whether the specified field has been rendered in the form.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Mvc Namespace

Return to top