AutomationPeer.IsDataValidForForm AutomationPeer.IsDataValidForForm AutomationPeer.IsDataValidForForm AutomationPeer.IsDataValidForForm Method

Definition

Gets a Boolean value that indicates whether the entered or selected value is valid for the form rule associated with the automation element.

public : Platform::Boolean IsDataValidForForm()
bool IsDataValidForForm() const;
public bool IsDataValidForForm()
Public Function IsDataValidForForm() As bool

Returns

bool bool

A Boolean value that indicates whether the entered or selected value is valid for the form rule associated with the automation element. The default return value is true.

Additional features and requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

As an example, if the user entered "425-555-5555" for a zip code field that requires 5 or 9 digits, the IsDataValidForForm property can be set to false to indicate that the data is not valid.