MaxEntriesAttribute

MaxEntriesAttribute Class

Set the Maximum number of array values allowed.

Syntax

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

Remarks

Defaults to 20, which is the system maximum.

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0

Members

See Also: Inherited members from Attribute.

Public Constructors

 
Set the Maximum number of IList or IDictionary allowed.

Member Details

MaxEntriesAttribute Constructor

Set the Maximum number of IList or IDictionary allowed.

Syntax

public MaxEntriesAttribute (int maxCount)

Parameters

maxCount

Remarks

Defaults to 20, which is the system maximum.

Example

C# Example
            [MaxValues(1)]
            public IList<float>floatList;
            

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0


Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.