Sprog

ArgumentArity Struct

Definition

Defines the arity of an option or argument.

public value class ArgumentArity : IEquatable<System::CommandLine::ArgumentArity>
public ref class ArgumentArity : System::CommandLine::IArgumentArity
public readonly struct ArgumentArity : IEquatable<System.CommandLine.ArgumentArity>
public class ArgumentArity : System.CommandLine.IArgumentArity
type ArgumentArity = struct
type ArgumentArity = class
    interface IArgumentArity
Public Structure ArgumentArity
Implements IEquatable(Of ArgumentArity)
Public Class ArgumentArity
Implements IArgumentArity
Inheritance
ArgumentArity
Inheritance
ArgumentArity
Implements

Remarks

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

Constructors

Name Description
ArgumentArity(Int32, Int32)

Initializes a new instance of the ArgumentArity class.

Properties

Name Description
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

Name Description
Equals(ArgumentArity)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

Applies to