共用方式為


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 取得ITextView觸發此 IntelliSense 工作階段的。

回頁首

方法

  名稱 描述
公用方法 Collapse 降低最小化狀態的工作階段。如果工作階段沒有這種狀態,就會關閉工作階段。
公用方法 Dismiss 取消工作階段,使展示器終結,並使工作階段從工作階段堆疊中移除。
公用方法 GetTriggerPoint(ITextBuffer) 取得ITrackingPoint IntelliSense 本次觸發的指定ITextBuffer
公用方法 GetTriggerPoint(ITextSnapshot) 取得根據指定的 ITextSnapshot 觸發此 IntelliSense 工作階段的所在 SnapshotPoint
公用方法 Match 判斷工作階段中的最佳相符項目,並將選取項目設為此項目。
公用方法 Recalculate 使用相同的觸發點,重新計算有關此工作階段的基礎 IntelliSense 項目。
公用方法 Start 啟動工作階段。

回頁首

事件

  名稱 描述
公用事件 Dismissed 在工作階段取消時發生。
公用事件 PresenterChanged 在此工作階段的 IntelliSense 展示器變更時發生。
公用事件 Recalculated 發生於工作階段會重新計算。

回頁首

備註

工作階段傳回的每個 IntelliSense 觸發作業而言,可以用來控制 IntelliSense 作業的程序。 IntelliSense 的工作階段聚合為堆疊,由IIntellisenseSessionStack執行個體。

介面ICompletionSessionIQuickInfoSessionISignatureHelpSession,以及ISmartTagSession實作這個介面。

如需有關 IntelliSense 的詳細資訊,請參閱編輯器的擴充點

請參閱

參考

Microsoft.VisualStudio.Language.Intellisense 命名空間