ICompletionBroker.CreateCompletionSession Method

Definition

Creates a completion session, but does not start it.

public:
 Microsoft::VisualStudio::Language::Intellisense::ICompletionSession ^ CreateCompletionSession(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::ITrackingPoint ^ triggerPoint, bool trackCaret);
public:
 Microsoft::VisualStudio::Language::Intellisense::ICompletionSession ^ CreateCompletionSession(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::ITrackingPoint ^ triggerPoint, bool trackCaret);
Microsoft::VisualStudio::Language::Intellisense::ICompletionSession CreateCompletionSession(Microsoft::VisualStudio::Text::Editor::ITextView const & textView, Microsoft::VisualStudio::Text::ITrackingPoint const & triggerPoint, bool trackCaret);
public Microsoft.VisualStudio.Language.Intellisense.ICompletionSession CreateCompletionSession (Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Text.ITrackingPoint triggerPoint, bool trackCaret);
abstract member CreateCompletionSession : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.ITrackingPoint * bool -> Microsoft.VisualStudio.Language.Intellisense.ICompletionSession
Public Function CreateCompletionSession (textView As ITextView, triggerPoint As ITrackingPoint, trackCaret As Boolean) As ICompletionSession

Parameters

textView
ITextView

The ITextView over which to create a completion session.

triggerPoint
ITrackingPoint

The point in the text buffer at which statement completion is requested.

trackCaret
Boolean

true if this session should track the caret, false otherwise. When the caret is tracked, only completion items whose applicability span contains the caret will be displayed.

Returns

A valid statement completion session. May be null if no session could be created.

Remarks

This method is useful if you want to set some properties on the session before starting it.

Applies to