Click or drag to resize
ConsentSelectorComponent Methods

The ConsentSelectorComponent 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.

(Inherited from FormComponent.)
Public methodGetDisplayName
Returns non-localized string representing component name. Component Name is returned in case of empty Label.
(Inherited from FormComponent.)
Protected methodGetHtmlOptions
Returns data source containing ConsentName and ConsentDisplayName pairs, for populating drop-down list.
(Overrides SelectorFormComponentTPropertiesGetHtmlOptions.)
Protected methodGetItems Obsolete.
Returns collection of items populated in component.

This method is obsolete. Use GetHtmlOptions method instead.

(Inherited from SelectorFormComponentTProperties.)
Public methodGetModelPropertyCustomAttributesT
Gets a collection of custom attributes applied to the model's property this form component represents.
(Inherited from FormComponent.)
Public methodGetObjectValue
Gets the value of the form component. The GetValue method can be used directly to obtain the typed value.
(Inherited from FormComponentTProperties, TValue.)
Public methodGetValue
Gets the SelectedValue property.
(Inherited from DropDownComponent.)
Public methodLoadProperties
Loads option label property.
(Overrides SelectorFormComponentTPropertiesLoadProperties(FormComponentProperties).)
Public methodModifyMetadata
Modifies modelMetadata according to the current object.
(Inherited from FormComponent.)
Public methodSetObjectValue
Sets the value of the form component. The value must be of proper type or an exception is thrown. The SetValue(TValue) method can be used directly to set the typed default value.
(Inherited from FormComponentTProperties, TValue.)
Public methodSetValue
Sets the SelectedValue property.
(Inherited from SelectorFormComponentTProperties.)
Public methodValidate
Validates whether valid consent is selected.
(Overrides SelectorFormComponentTPropertiesValidate(ValidationContext).)
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