Show / Hide Table of Contents

Property ValidationErrors

ValidationErrors

Gets the results of validating the values of FieldFormElements in Elements against their constraints.

Declaration
public IDictionary<string, IEnumerable<Exception>> ValidationErrors { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.Collections.Generic.IEnumerable<System.Exception>>

A Dictionary mapping from FieldName to errors resulting from validating field forms against their constraints. The errors returned for each key are a set of any of the following exception types:

  • FeatureFormNullNotAllowedException
  • FeatureFormIncorrectValueTypeException
  • FeatureFormExceedsMaximumDateTimeException
  • FeatureFormLessThanMinimumDateTimeException
  • FeatureFormExceedsMaximumLengthException
  • FeatureFormLessThanMinimumLengthException
  • FeatureFormExceedsNumericMaximumException
  • FeatureFormLessThanNumericMinimumException
  • FeatureFormNotInCodedValueDomainException
  • FeatureFormFieldIsRequiredException

Remarks

An empty dictionary indicates that all visible and editable field form element values are valid. Constraints are expressed by the FormInput and value of IsRequired of the element. The constraints depend on the type of FormInput. A PropertyChanged event for this property is raised when the validation errors of visible and editable Elements change. This includes validation errors arising from changes in the element's visibility or ability to be edited. This dictionary contains validation errors for visible and editable field form elements only. For other field form elements, use the ValidationErrors property.

See Also
ValidationErrors

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.4 - 200.8
.NET200.4 - 200.8
.NET Windows200.4 - 200.8
.NET Android200.4 - 200.8
.NET iOS200.4 - 200.8
.NET Framework200.4 - 200.8
UWP200.4 - 200.8
In This Article
Back to top Copyright © 2022 Esri.