IAsyncCompletionBroker.GetSession(ITextView) 方法

定义

IAsyncCompletionSession如果在给定中有一个处于活动状态,则返回; 如果未处于活动状态,则返回 ITextView null。

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

参数

textView
ITextView

查看承载完成和相关缓冲区的视图

返回

IAsyncCompletionSession

注解

如果 IAsyncCompletionSession 同时在另一个线程上消除,数据可能会过时。 用于 IsDismissed 检查返回的会话的状态。

适用于