Partilhar via


Source.Completion(IVsTextView, TokenInfo, ParseReason) Method

Definition

Starts an IntelliSense member completion operation.

public:
 virtual void Completion(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ textView, Microsoft::VisualStudio::Package::TokenInfo ^ info, Microsoft::VisualStudio::Package::ParseReason reason);
 virtual void Completion(Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & textView, Microsoft::VisualStudio::Package::TokenInfo const & info, Microsoft::VisualStudio::Package::ParseReason reason);
public virtual void Completion (Microsoft.VisualStudio.TextManager.Interop.IVsTextView textView, Microsoft.VisualStudio.Package.TokenInfo info, Microsoft.VisualStudio.Package.ParseReason reason);
abstract member Completion : Microsoft.VisualStudio.TextManager.Interop.IVsTextView * Microsoft.VisualStudio.Package.TokenInfo * Microsoft.VisualStudio.Package.ParseReason -> unit
override this.Completion : Microsoft.VisualStudio.TextManager.Interop.IVsTextView * Microsoft.VisualStudio.Package.TokenInfo * Microsoft.VisualStudio.Package.ParseReason -> unit
Public Overridable Sub Completion (textView As IVsTextView, info As TokenInfo, reason As ParseReason)

Parameters

textView
IVsTextView

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

info
TokenInfo

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

reason
ParseReason

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

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 Member Completion in a Legacy Language Service for more information.

Applies to