Source::Completion Method (IVsTextView^, TokenInfo^, ParseReason)

 

Starts an IntelliSense member completion operation.

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

public:
virtual void Completion(
	IVsTextView^ textView,
	TokenInfo^ info,
	ParseReason reason
)

Parameters

textView
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextView^

The IVsTextView object representing the view the completion list is shown in.

info
Type: Microsoft.VisualStudio.Package::TokenInfo^

The TokenInfo object representing the token that triggered the completion operation.

reason
Type: Microsoft.VisualStudio.Package::ParseReason

A value from the ParseReason enumeration specifying how this completion operation was triggered.

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.

Return to top
Show: