Interface IFormFieldValueProvider
Provides values of form fields.
public interface IFormFieldValueProvider
- Extension Methods
Methods
TryGet<TValue>(string, out TValue)
Gets the value of the form field identified by its name.
bool TryGet<TValue>(string fieldName, out TValue value)
Parameters
fieldNamestringName of the field.
valueTValueThe value of given field or
nullin case the field doesn't exist in the form.
Returns
- bool
Returns
trueif field exists among the form fields.
Type Parameters
TValueType of the value to retrieve.
Exceptions
- ArgumentNullException
Thrown when
fieldNameis null.- InvalidCastException
Thrown when the value of
fieldNameis not assignable to theTValuetype.
See Also
ValidationRule<TProperties, TClientProperties, TValue>
VisibilityCondition<TProperties>