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