IAsyncCompletionBroker.GetSession(ITextView) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns IAsyncCompletionSession if there is one active in a given ITextView, or null if not.
public:
Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::IAsyncCompletionSession ^ GetSession(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView);
public Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.IAsyncCompletionSession GetSession (Microsoft.VisualStudio.Text.Editor.ITextView textView);
abstract member GetSession : Microsoft.VisualStudio.Text.Editor.ITextView -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.IAsyncCompletionSession
Public Function GetSession (textView As ITextView) As IAsyncCompletionSession
Parameters
- textView
- ITextView
View that hosts completion and relevant buffers
Returns
Remarks
The data may be stale if IAsyncCompletionSession was simultaneously dismissed on another thread. Use IsDismissed to check state of returned session.