Class MinValueAttribute
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.Interactions.dll
Set the minimum value permitted for a number type parameter.
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public sealed class MinValueAttribute : Attribute
- Inheritance
-
MinValueAttribute
- Inherited Members
Constructors
MinValueAttribute(double)
Set the minimum value permitted for a number type parameter.
public MinValueAttribute(double value)
Parameters
value
doubleThe minimum value permitted.
Properties
Value
Gets the minimum value permitted.
public double Value { get; }