# ValidationConstraints

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

Defines how to validate a container's child controls.

{% tabs %}
{% tab title="C#" %}

```csharp
public enum ValidationConstraints : Enum
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Enum ValidationConstraints As [Enum]
```

{% endtab %}
{% endtabs %}

## Fields

| Name                  | Description                                                                                                           |
| --------------------- | --------------------------------------------------------------------------------------------------------------------- |
| **Enabled**           | Validates child controls whose [Enabled](https://docs.wisej.com/api/general/control#enabled) property is set to true. |
| **ImmediateChildren** | Validates child controls that are immediate children of the container.                                                |
| **None**              | Validates all child controls, and all children of these child controls, regardless of their property settings.        |
| **Selectable**        | Validates child controls that can be selected.                                                                        |
| **TabStop**           | Validates child controls that have a [TabStop](https://docs.wisej.com/api/general/control#tabstop) value set to true. |
| **Visible**           | Validates child controls whose [Visible](https://docs.wisej.com/api/general/control#visible) property is set to true. |

## Used By

| Name                                                                                                         | Description                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Control.ValidateChildren](https://docs.wisej.com/api/general/control#validatechildren)                      | Validates all the child controls in the container. Exactly which controls are validated and which controls are skipped is determined by *flags* . |
| [Page.ValidateChildren](https://docs.wisej.com/api/containers/wisej.web.page#validatechildren)               | Validates all the child controls in the container. Exactly which controls are validated and which controls are skipped is determined by *flags* . |
| [UserControl.ValidateChildren](https://docs.wisej.com/api/containers/wisej.web.usercontrol#validatechildren) | Validates all the child controls in the container. Exactly which controls are validated and which controls are skipped is determined by *flags* . |
