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>
參數
textBuffer
類型:Microsoft.VisualStudio.Text.ITextBufferITextBuffer為其取得錯誤 tagger。
傳回值
類型:Microsoft.VisualStudio.Text.Tagging.SimpleTagger<ErrorTag>
文字緩衝區錯誤 tagger。
備註
如果不存在,會建立,並會快取新SimpleTagger<T>與ITextBuffer。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。