Class MaxLengthAttribute
- Namespace
- HeyBox.Interactions
- Assembly
- HeyBox.Net.Interactions.dll
设置字符串类型参数允许的最大长度。
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class MaxLengthAttribute : Attribute
- Inheritance
-
MaxLengthAttribute
- Inherited Members
Constructors
MaxLengthAttribute(int)
设置字符串类型参数允许的最大长度。
public MaxLengthAttribute(int length)
Parameters
length
int允许的最大字符串长度。
Properties
Length
获取字符串类型参数允许的最大长度。
public int Length { get; }