获取一个错误标记 ( SimpleTagger<T> 类型 ErrorTag) 给定缓冲区的或创建新的; 如果在缓冲区拥有的属性中尚未缓存的错误标记。
命名空间: Microsoft.VisualStudio.Text.Adornments
程序集: Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)
语法
声明
Public Interface IErrorProviderFactory
public interface IErrorProviderFactory
public interface class IErrorProviderFactory
type IErrorProviderFactory = interface end
public interface IErrorProviderFactory
IErrorProviderFactory 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
![]() |
GetErrorTagger | 获取给定 ITextBuffer的缓存错误标记。 |
页首
备注
这是 MEF 组件部件,应导入如下所示:
[Import]
internal IErrorProviderFactory TestProviderFactory = null;