다음을 통해 공유


IAsyncCompletionSession.CreateCompletionList<T> Method

Definition

Creates session-scoped readonly list of CompletionItems or CompletionItemWithHighlights capable of efficient storing of large number of items.

public Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionList<T> CreateCompletionList<T> (System.Collections.Generic.IEnumerable<T> completionItems);
abstract member CreateCompletionList : seq<'T> -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionList<'T>
Public Function CreateCompletionList(Of T) (completionItems As IEnumerable(Of T)) As CompletionList(Of T)

Type Parameters

T

Parameters

completionItems
IEnumerable<T>

List of completion items.

Returns

Ssession-scoped readonly list of completion items.

Remarks

CompletionList<T> instances are only valid during the lifetime of a pertinent IAsyncCompletionSession and should not be referenced beyond that.

Applies to