Skip to content

Get Sansar

Script API

MinEntriesAttribute

Where: Client
More page actions

For the complete documentation index, see llms.txt. This page is also available as Markdown.

Class Namespace Sansar.Script Inherits Attribute

Set the Minimum number of array values allowed.

[System.AttributeUsage(System.AttributeTargets.Field)]
public class MinEntriesAttribute : Attribute

Remarks

Defaults to 0, allowing the array to be empty.

Members at a glance

KindMembers
ConstructorsMinEntriesAttribute

Constructors

MinEntriesAttribute

public MinEntriesAttribute(int minCount)

Set the Minimum number of array values allowed.

ParameterTypeDescription
minCountint
Remarks

Defaults to 0, allowing the array to be empty.

Example
[MinValues(1)]
public IList<float>floatList;

Generated from the Sansar 47.10.0 client ScriptApi snapshot.