CompletionSourceList 類別

定義

提供完成時要使用的完成來源清單。

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)
繼承
CompletionSourceList
實作

建構函式

CompletionSourceList()

提供完成時要使用的完成來源清單。

屬性

Count

取得集合中的項目數。

Item[Int32]

取得唯讀清單中指定索引處的項目。

方法

Add(ICompletionSource)

將完成來源新增至清單。

Clear()

清除完成來源。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetEnumerator()

傳回逐一查看集合的列舉值。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

IEnumerable.GetEnumerator()

傳回逐一查看集合的列舉值。

擴充方法

Add(CompletionSourceList, CompletionDelegate)

使用委派加入完成來源。

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

使用委派加入完成來源。

Add(CompletionSourceList, String[])

使用委派加入完成來源。

適用於