In This Article

ICompletionItemCollection Interface

Provides the base requirements for an object that represents a collection of ICompletionItem objects.

public interface ICompletionItemCollection

Methods

AddRange(IEnumerable<ICompletionItem>)

Adds multiple items to the collection.

void AddRange(IEnumerable<ICompletionItem> items)
Parameter Type Description
items IEnumerable<ICompletionItem>

The collection of items to add.

Remarks

Wrap calls to this method in a batch operation via CreateBatch() for maximum performance.

CreateBatch()

Creates an IDisposable object such that while the object is not disposed, items can be added to this collection without any change events being fired, thereby allowing batch updates to occur.

IDisposable CreateBatch()

Returns

IDisposable:

An IDisposable object. Once disposed, the batch is ended.