Język

ArgumentArity Struktura

Definicja

Definiuje arity opcji lub argumentu.

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
Dziedziczenie
ArgumentArity
Dziedziczenie
ArgumentArity
Implementuje

Uwagi

Arity odnosi się do liczby wartości, które można przekazać w wierszu polecenia.

Konstruktory

Nazwisko Opis
ArgumentArity(Int32, Int32)

Inicjuje nowe wystąpienie klasy ArgumentArity.

Właściwości

Nazwisko Opis
ExactlyOne

Arity, które musi mieć dokładnie jedną wartość.

MaximumNumberOfValues

Pobiera maksymalną liczbę wartości dozwolonych dla argumentu.

MinimumNumberOfValues

Pobiera minimalną liczbę wartości wymaganych dla argumentu.

OneOrMore

Wartość, która musi mieć co najmniej jedną wartość.

Zero

Arity, które nie zezwala na żadne wartości.

ZeroOrMore

Arity, które mogą mieć wiele wartości.

ZeroOrOne

Arity, które mogą mieć jedną wartość, ale nie więcej niż jedną.

Metody

Nazwisko Opis
Equals(ArgumentArity)

Wskazuje, czy bieżący obiekt jest równy innemu obiektowi tego samego typu.

Equals(Object)

Określa, czy określony obiekt jest równy bieżącemu obiektowi.

GetHashCode()

Służy jako domyślna funkcja skrótu.

Dotyczy