MaxLengthAttribute class
namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
Sets the maximum length of an editor attached to the target property.
[AttributeUsage(AttributeTargets.All)]
public class MaxLengthAttribute : Attribute
| parameter | description |
|---|---|
| maxLength | The maximum length. |
Public Members
| name | description |
|---|---|
| MaxLengthAttribute(…) | Sets the maximum length of an editor attached to the target property. |
| MaxLength { get; } | Gets the maximum length. |
Remarks
Initializes a new instance of the MaxLengthAttribute class.
See Also
- Source: MaxLengthAttribute.cs