Click or drag to resize
FormComponent Methods

The FormComponent type exposes the following members.

Methods
  NameDescription
Public methodBindContext

Binds contextual information to the form component. The actual type of context depends on where the component is being used.

The component can throw an exception if being used in a context for which it is not designed. The base implementation provided by this class must be called prior to throwing an exception, however.

Public methodGetDisplayName
Returns non-localized string representing component name. Component Name is returned in case of empty Label.
Public methodGetModelPropertyCustomAttributesT
Gets a collection of custom attributes applied to the model's property this form component represents.
Public methodGetObjectValue
Gets the value of the form component.
Public methodLoadProperties
Loads properties of the form component. The actual properties type must match the PropertiesType.
Public methodModifyMetadata
Modifies modelMetadata according to the current object.
Public methodSetObjectValue
Sets the value of the form component. The value must be of proper type or an exception is thrown.
Public methodValidate
Determines whether the specified object is valid. Only invoked if validation by validation attributes passes for all fields.
Top
Extension Methods
  NameDescription
Public Extension MethodGetBizFormComponentContext
Gets BizFormComponentContext of a form component, if such a context was bound to the component.
(Defined by FormComponentExtensions.)
Top
See Also