提供完成源。
命名空间: 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))]
您可以提供 ContentTypeAttribute 和 OrderAttribute 指定它将内容的类型。 有关使用这些属性的更多信息,请参见 编辑扩展点。
示例
有关此接口的示例,请参见 演练:显示的语句完成。