AskMultiChoiceOptions
Options for AskMultiChoiceAsync(string, string, IReadOnlyList<string>, IReadOnlyList<int>?, AskMultiChoiceOptions?).
- Kind:
Class - Namespace: Repl.Interaction
- Assembly:
Repl.Core - Source: src/Repl.Core/Interaction/AskMultiChoiceOptions.cs
Signature
Section titled “Signature”public record AskMultiChoiceOptions : IEquatable<AskMultiChoiceOptions>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<AskMultiChoiceOptions>
Constructors
Section titled “Constructors”AskMultiChoiceOptions(TimeSpan?, int?, int?, CancellationToken)
Section titled “AskMultiChoiceOptions(TimeSpan?, int?, int?, CancellationToken)”Options for AskMultiChoiceAsync(string, string, IReadOnlyList<string>, IReadOnlyList<int>?, AskMultiChoiceOptions?).
public AskMultiChoiceOptions(TimeSpan? Timeout = null, int? MinSelections = null, int? MaxSelections = null, CancellationToken CancellationToken = default)Parameters
Section titled “Parameters”Timeout(TimeSpan?): Optional timeout for the prompt. When the timeout elapses, the default selections are returned.MinSelections(int?): Minimum number of selections required.nullmeans no minimum.MaxSelections(int?): Maximum number of selections allowed.nullmeans no maximum.CancellationToken(CancellationToken): Explicit cancellation token. Whendefault, the channel uses the ambient per-command token set by the framework before each command dispatch.
Properties
Section titled “Properties”CancellationToken
Section titled “CancellationToken”Explicit cancellation token. When default, the channel uses the
ambient per-command token set by the framework before each command dispatch.
public CancellationToken CancellationToken { get; init; }Returns
Section titled “Returns”MaxSelections
Section titled “MaxSelections”Maximum number of selections allowed. null means no maximum.
public int? MaxSelections { get; init; }Returns
Section titled “Returns”int?
MinSelections
Section titled “MinSelections”Minimum number of selections required. null means no minimum.
public int? MinSelections { get; init; }Returns
Section titled “Returns”int?
Timeout
Section titled “Timeout”Optional timeout for the prompt. When the timeout elapses, the default selections are returned.
public TimeSpan? Timeout { get; init; }Returns
Section titled “Returns”TimeSpan?