#### [Abblix\.Utils](https://www.abblix.com/en/docs/api/abblix-utils 'index')
### [Abblix\.Utils\.Validation](https://www.abblix.com/en/docs/api/abblix-utils/Abblix.Utils.Validation 'Abblix\.Utils\.Validation')

## ElementsRequiredAttribute Class

A validation attribute that rejects a collection containing a null element; a non\-collection value is left
untouched\. Shared by the MVC and Minimal API OIDC server adapters, whose source generators emit it from the
declarative core `ElementsRequired` marker\.

```csharp
public sealed class ElementsRequiredAttribute : System.ComponentModel.DataAnnotations.ValidationAttribute
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → [System\.Attribute](https://learn.microsoft.com/en-us/dotnet/api/system.attribute 'System\.Attribute') → [System\.ComponentModel\.DataAnnotations\.ValidationAttribute](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.validationattribute 'System\.ComponentModel\.DataAnnotations\.ValidationAttribute') → ElementsRequiredAttribute
