Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


ArgumentArity Struct

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.

Defines the arity of an option or argument.

public readonly struct ArgumentArity : IEquatable<System.CommandLine.ArgumentArity>
Inheritance
ArgumentArity
Implements

Remarks

The arity refers to the number of values that can be passed on the command line.

Constructors

ArgumentArity(Int32, Int32)

Initializes a new instance of the ArgumentArity class.

Properties

ExactlyOne

An arity that must have exactly one value.

MaximumNumberOfValues

Gets the maximum number of values allowed for an argument.

MinimumNumberOfValues

Gets the minimum number of values required for an argument.

OneOrMore

An arity that must have at least one value.

Zero

An arity that does not allow any values.

ZeroOrMore

An arity that may have multiple values.

ZeroOrOne

An arity that may have one value, but no more than one.

Methods

Equals(ArgumentArity)

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.

GetHashCode()

Returns the hash code for this instance.

Applies to

Termék Verziók
System.CommandLine 2.0