共用方式為


IErrorProviderFactory.GetErrorTagger 方法

取得快取的錯誤 tagger,針對指定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>
文字緩衝區錯誤 tagger。

備註

如果不存在,會建立,並會快取新SimpleTagger<T>ITextBuffer

.NET Framework 安全性

請參閱

參考

IErrorProviderFactory 介面

Microsoft.VisualStudio.Text.Adornments 命名空間