Source.CreateCompletionSet Method
Creates a new instance of a CompletionSet class.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'宣告
Public Overridable Function CreateCompletionSet As CompletionSet
'用途
Dim instance As Source
Dim returnValue As CompletionSet
returnValue = instance.CreateCompletionSet()
public virtual CompletionSet CreateCompletionSet()
public:
virtual CompletionSet^ CreateCompletionSet()
abstract CreateCompletionSet : unit -> CompletionSet
override CreateCompletionSet : unit -> CompletionSet
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.