IErrorProviderFactory.GetErrorTagger 方法

获取给定 ITextBuffer的缓存错误标记。

命名空间:  Microsoft.VisualStudio.Text.Adornments
程序集:  Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)

语法

声明
Function GetErrorTagger ( _
    textBuffer As ITextBuffer _
) As SimpleTagger(Of ErrorTag)
SimpleTagger<ErrorTag> GetErrorTagger(
    ITextBuffer textBuffer
)
SimpleTagger<ErrorTag^>^ GetErrorTagger(
    ITextBuffer^ textBuffer
)
abstract GetErrorTagger : 
        textBuffer:ITextBuffer -> SimpleTagger<ErrorTag> 
function GetErrorTagger(
    textBuffer : ITextBuffer
) : SimpleTagger<ErrorTag>

参数

返回值

类型:Microsoft.VisualStudio.Text.Tagging.SimpleTagger<ErrorTag>
文本缓冲区的错误标记。

备注

如果不存在,请 ITextBuffer创建并缓存新 SimpleTagger<T>

.NET Framework 安全性

请参阅

参考

IErrorProviderFactory 接口

Microsoft.VisualStudio.Text.Adornments 命名空间