IIntellisenseSession 接口

表示一个 IntelliSense 会话或 IntelliSense 进程的单个实例。

命名空间:  Microsoft.VisualStudio.Language.Intellisense
程序集:  Microsoft.VisualStudio.Language.Intellisense(在 Microsoft.VisualStudio.Language.Intellisense.dll 中)

语法

声明
Public Interface IIntellisenseSession _
    Inherits IPropertyOwner
public interface IIntellisenseSession : IPropertyOwner
public interface class IIntellisenseSession : IPropertyOwner
type IIntellisenseSession =  
    interface 
        interface IPropertyOwner 
    end
public interface IIntellisenseSession extends IPropertyOwner

IIntellisenseSession 类型公开以下成员。

属性

  名称 说明
公共属性 IsDismissed 确定会话是否已关闭。
公共属性 Presenter 获取用于为会话呈现 IntelliSense 的 IIntellisensePresenter
公共属性 Properties 获取属性所有者控制的属性集合。 (继承自 IPropertyOwner。)
公共属性 TextView 获取其中触发此 IntelliSense 会话的 ITextView

页首

方法

  名称 说明
公共方法 Collapse 使该会话减少到一个最小化状态的。如果会话没有这样的状态,则会议将关闭。
公共方法 Dismiss 关闭会话,从而销毁相应呈现器,并从会话堆栈中移除该会话。
公共方法 GetTriggerPoint(ITextBuffer) 获取此 IntelliSense 会话指定的 ITextBuffer触发的 ITrackingPoint
公共方法 GetTriggerPoint(ITextSnapshot) 获取在指定的 ITextSnapshot 中触发此 IntelliSense 会话时所在的 SnapshotPoint
公共方法 Match 确定会话中的最佳匹配项并选择此项。
公共方法 Recalculate 使用同一触发点重新计算属于此会话的基础 IntelliSense 项。
公共方法 Start 启动会话。

页首

事件

  名称 说明
公共事件 Dismissed 在关闭会话时发生。
公共事件 PresenterChanged 在会话的 IntelliSense 呈现器更改时发生。
公共事件 Recalculated ,在该会话重新计算,发生。

页首

备注

会议由触发操作的每个 IntelliSense 返回,并且可用于控制 IntelliSense 操作处理。 IntelliSense 会话合成到堆栈,管理的 IIntellisenseSessionStack 实例。

接口 ICompletionSessionIQuickInfoSessionISignatureHelpSessionISmartTagSession 实现此接口。

有关 IntelliSense 的更多信息,请参见 编辑扩展点

请参阅

参考

Microsoft.VisualStudio.Language.Intellisense 命名空间