> For the complete documentation index, see [llms.txt](https://docs.sansar.com/latest/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sansar.com/latest/script-api-docs/sansar-script-namespace/maxentriesattribute.md).

# MaxEntriesAttribute

### MaxEntriesAttribute Class

Set the Maximum number of array values allowed.

### Syntax

\[System.AttributeUsage(System.AttributeTargets.Field)]\
public class **MaxEntriesAttribute** : [Attribute](http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Attribute)

### Member Details

#### MaxEntriesAttribute Constructor

> Set the Maximum number of IList or IDictionary allowed.
>
> ### Syntax
>
> public **MaxEntriesAttribute** ([int](http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32) maxCount)
>
> **Parameters**
>
> > *maxCount*
>
> ### Remarks
>
> ### Example

<table data-header-hidden><thead><tr><th></th></tr></thead><tbody><tr><td><strong>C# Example</strong></td></tr><tr><td><pre><code>            [MaxValues(1)]
</code></pre></td></tr></tbody></table>

```
        public IList&#x3C;float>floatList;
        
```

|

> ### Requirements
>
> **Namespace:** Sansar.Script\
> **Assembly:** Sansar.Script (in Sansar.Script.dll)\
> **Assembly Versions:** 1.0.0.0
>
> ***

***
