Share via


Source.Completion Method

Starts an IntelliSense member completion operation.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
Public Overridable Sub Completion ( _
    textView As IVsTextView, _
    info As TokenInfo, _
    reason As ParseReason _
)
public virtual void Completion(
    IVsTextView textView,
    TokenInfo info,
    ParseReason reason
)
public:
virtual void Completion(
    IVsTextView^ textView, 
    TokenInfo^ info, 
    ParseReason reason
)
abstract Completion : 
        textView:IVsTextView * 
        info:TokenInfo * 
        reason:ParseReason -> unit  
override Completion : 
        textView:IVsTextView * 
        info:TokenInfo * 
        reason:ParseReason -> unit
public function Completion(
    textView : IVsTextView, 
    info : TokenInfo, 
    reason : ParseReason
)

Parameters

Remarks

This method is called when a character has been typed and the parsed token on the line indicates that the user wants to see a member list. For example, if the user types a period after typing a class name, this would trigger the IntelliSense member completion operation to show all members on that class that can be entered by the user.

The base method performs a parse with the parse reason MemberSelect or MemberSelectAndHighlightBraces and then shows the completion list to the user.

See IntelliSense Member Completion (Managed Package Framework) for more information.

.NET Framework Security

See Also

Reference

Source Class

Microsoft.VisualStudio.Package Namespace

Other Resources

IntelliSense Member Completion (Managed Package Framework)