ArgumentArity(Int32, Int32) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ArgumentArity class.
public:
ArgumentArity(int minimumNumberOfValues, int maximumNumberOfValues);
public ArgumentArity (int minimumNumberOfValues, int maximumNumberOfValues);
new System.CommandLine.ArgumentArity : int * int -> System.CommandLine.ArgumentArity
Public Sub New (minimumNumberOfValues As Integer, maximumNumberOfValues As Integer)
Parameters
- minimumNumberOfValues
- Int32
The minimum number of values required for the argument.
- maximumNumberOfValues
- Int32
The maximum number of values allowed for the argument.
Exceptions
Thrown when minimumNumberOfValues
is negative.
Thrown when the maximum number is less than the minimum number or the maximum number is greater than MaximumArity.
Applies to
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.