Partilhar via


Source.CreateCompletionSet Method

Definition

Creates a new instance of a CompletionSet class.

public:
 virtual Microsoft::VisualStudio::Package::CompletionSet ^ CreateCompletionSet();
public virtual Microsoft.VisualStudio.Package.CompletionSet CreateCompletionSet ();
abstract member CreateCompletionSet : unit -> Microsoft.VisualStudio.Package.CompletionSet
override this.CreateCompletionSet : unit -> Microsoft.VisualStudio.Package.CompletionSet
Public Overridable Function CreateCompletionSet () As CompletionSet

Returns

A CompletionSet object.

Remarks

This method is called from the Source class constructor to create a CompletionSet object that is used for all IntelliSense member completion operations. If you need to derive a class from the CompletionSet class, you must derive a class from the Source class, override this method and instantiate your own CompletionSet class.

The base method always returns a new CompletionSet initialized with an image list obtained by calling the GetImageList method on the LanguageService object passed into the constructor of the Source object.

Applies to