ArgumentArity Struct
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.
Defines the arity of an option or argument.
public value class ArgumentArity : IEquatable<System::CommandLine::ArgumentArity>
public readonly struct ArgumentArity : IEquatable<System.CommandLine.ArgumentArity>
type ArgumentArity = struct
Public Structure ArgumentArity
Implements IEquatable(Of ArgumentArity)
- Inheritance
- Implements
The arity refers to the number of values that can be passed on the command line.
Argument |
Initializes a new instance of the ArgumentArity class. |
Exactly |
An arity that must have exactly one value. |
Maximum |
Gets the maximum number of values allowed for an argument. |
Minimum |
Gets the minimum number of values required for an argument. |
One |
An arity that must have at least one value. |
Zero |
An arity that does not allow any values. |
Zero |
An arity that may have multiple values. |
Zero |
An arity that may have one value, but no more than one. |
Equals(Argument |
Indicates whether the current object is equal to another object of the same type. |
Equals(Object) |
Indicates whether this instance and a specified object are equal. |
Get |
Returns the hash code for this instance. |
Termék | Verziók |
---|---|
System.CommandLine | 2.0 |
.NET-visszajelzés
A(z) .NET egy nyílt forráskód projekt. Visszajelzés adásához válasszon egy hivatkozást: