ICompletionSourceProvider 接口

提供完成源。

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

语法

声明
Public Interface ICompletionSourceProvider
public interface ICompletionSourceProvider
public interface class ICompletionSourceProvider
type ICompletionSourceProvider =  interface end
public interface ICompletionSourceProvider

ICompletionSourceProvider 类型公开以下成员。

方法

  名称 说明
公共方法 TryCreateCompletionSource 为给定上下文创建完成提供程序。

页首

备注

这是 MEF 组件部件,并且必须导出具有以下属性:

[Export(typeof(ICompletionSourceProvider))] 

您可以提供 ContentTypeAttributeOrderAttribute 指定它将内容的类型。 有关使用这些属性的更多信息,请参见 编辑扩展点

示例

有关此接口的示例,请参见 演练:显示的语句完成

请参阅

参考

Microsoft.VisualStudio.Language.Intellisense 命名空间