Share via


Source.CreateCompletionSet Method

Creates a new instance of a CompletionSet class.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Overridable Function CreateCompletionSet As CompletionSet
'Usage
Dim instance As Source 
Dim returnValue As CompletionSet 

returnValue = instance.CreateCompletionSet()
public virtual CompletionSet CreateCompletionSet()
public:
virtual CompletionSet^ CreateCompletionSet()
public function CreateCompletionSet() : CompletionSet

Return Value

Type: Microsoft.VisualStudio.Package.CompletionSet
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.

.NET Framework Security

See Also

Reference

Source Class

Source Members

Microsoft.VisualStudio.Package Namespace