Table of Contents

Class MinLengthAttribute

Namespace
HeyBox.Interactions
Assembly
HeyBox.Net.Interactions.dll

设置字符串类型参数允许的最小长度。

[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class MinLengthAttribute : Attribute
Inheritance
MinLengthAttribute
Inherited Members

Constructors

MinLengthAttribute(int)

设置字符串类型参数允许的最小长度。

public MinLengthAttribute(int length)

Parameters

length int

允许的最小字符串长度。

Properties

Length

获取字符串类型参数允许的最小长度。

public int Length { get; }

Property Value

int