Skip to content

AskMultiChoiceOptions

Options for AskMultiChoiceAsync(string, string, IReadOnlyList<string>, IReadOnlyList<int>?, AskMultiChoiceOptions?).

public record AskMultiChoiceOptions : IEquatable<AskMultiChoiceOptions>
  • IEquatable<AskMultiChoiceOptions>

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)
  • Timeout (TimeSpan?): Optional timeout for the prompt. When the timeout elapses, the default selections are returned.
  • MinSelections (int?): Minimum number of selections required. null means no minimum.
  • MaxSelections (int?): Maximum number of selections allowed. null means no maximum.
  • CancellationToken (CancellationToken): Explicit cancellation token. When default, the channel uses the ambient per-command token set by the framework before each command dispatch.

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; }

CancellationToken

Maximum number of selections allowed. null means no maximum.

public int? MaxSelections { get; init; }

int?

Minimum number of selections required. null means no minimum.

public int? MinSelections { get; init; }

int?

Optional timeout for the prompt. When the timeout elapses, the default selections are returned.

public TimeSpan? Timeout { get; init; }

TimeSpan?