Table of Contents

Class MinLengthAttribute

Namespace
Discord.Interactions
Assembly
Discord.Net.Interactions.dll

Sets the minimum length allowed for a string type parameter.

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

Constructors

MinLengthAttribute(int)

Sets the minimum length allowed for a string type parameter.

public MinLengthAttribute(int length)

Parameters

length int

Minimum string length allowed.

Properties

Length

Gets the minimum length allowed for a string type parameter.

public int Length { get; }

Property Value

int