Share via


CompletionSourceList Class

Definition

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

public ref 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 ^>
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>
type CompletionSourceList = class
    interface IReadOnlyList<ICompletionSource>
    interface seq<ICompletionSource>
    interface IEnumerable
    interface IReadOnlyCollection<ICompletionSource>
Public Class CompletionSourceList
Implements IEnumerable(Of ICompletionSource), IReadOnlyCollection(Of ICompletionSource), IReadOnlyList(Of ICompletionSource)
Inheritance
CompletionSourceList
Implements

Constructors

Name Description
CompletionSourceList()

Properties

Name Description
Count

Gets the number of elements in the collection.

Item[Int32]

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

Methods

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

Name Description
IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

Extension Methods

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