Compartilhar via


IAsyncCompletionBroker.GetSession(ITextView) Method

Definition

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.

Applies to