表示负责语句完成的中心代理。
命名空间: Microsoft.VisualStudio.Language.Intellisense
程序集: Microsoft.VisualStudio.Language.Intellisense(在 Microsoft.VisualStudio.Language.Intellisense.dll 中)
语法
声明
Public Interface ICompletionBroker
public interface ICompletionBroker
public interface class ICompletionBroker
type ICompletionBroker = interface end
public interface ICompletionBroker
ICompletionBroker 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
![]() |
CreateCompletionSession | 创建完成会话但不启动该会话。 |
![]() |
DismissAllSessions | 关闭所有的活动语句完成会话。 |
![]() |
GetSessions | 获取活动语句完成会话的列表。 |
![]() |
IsCompletionActive | 确定语句完成在指定 ITextView 中是否处于活动状态。 |
![]() |
TriggerCompletion(ITextView) | 启动语句完成过程,假定插入符号位置为应插入完成项的位置。 |
![]() |
TriggerCompletion(ITextView, ITrackingPoint, Boolean) | 启动语句完成过程在指定的位置。 |
页首
备注
应导入此接口如下所示:
[Import]
internal ICompletionBroker CompletionBroker { get; set; }
示例
有关此接口的示例,请参见 演练:显示的语句完成。