定义智能标记源的提供程序。
命名空间: Microsoft.VisualStudio.Language.Intellisense
程序集: Microsoft.VisualStudio.Language.Intellisense(在 Microsoft.VisualStudio.Language.Intellisense.dll 中)
语法
声明
Public Interface ISmartTagSourceProvider
public interface ISmartTagSourceProvider
public interface class ISmartTagSourceProvider
type ISmartTagSourceProvider = interface end
public interface ISmartTagSourceProvider
ISmartTagSourceProvider 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
![]() |
TryCreateSmartTagSource | 尝试为指定缓冲区创建智能标记源。 |
页首
备注
这是 MEF 组件部件,应通过以下属性:
[Export(typeof(ISmartTagSourceProvider))]
[Order…]
[Name…]
[ContentType...]
您指定 ContentTypeAttribute ,以便识别的源提供程序需要创建仅源缓冲区的内容类型和 OrderAttribute 指定源调用的顺序。
示例
有关使用的示例此接口,请参见 演练:显示 SmartTags。