Edit

Share via


CompletionSourceList Class

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.

A list of completion sources to be used when providing completions for completion.

C#
public class CompletionSourceList : System.Collections.Generic.IEnumerable<System.CommandLine.Completions.ICompletionSource>, System.Collections.Generic.IReadOnlyCollection<System.CommandLine.Completions.ICompletionSource>, System.Collections.Generic.IReadOnlyList<System.CommandLine.Completions.ICompletionSource>
Inheritance
CompletionSourceList
Implements

Constructors

Properties

Count

Gets the number of elements in the collection.

Item[Int32]

Gets the element at the specified index in the read-only list.

Methods

Add(ICompletionSource)

Adds a completion source to the list.

Clear()

Clears the completion sources.

GetEnumerator()

Returns an enumerator that iterates through the collection.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

Extension Methods

Add(CompletionSourceList, CompletionDelegate)

Adds a completion source using a delegate.

Add(CompletionSourceList, Func<CompletionContext,IEnumerable<String>>)

Adds a completion source using a delegate.

Add(CompletionSourceList, String[])

Adds a completion source using a delegate.

Applies to

Product Versions
System.CommandLine 2.0