IErrorProviderFactory.GetErrorTagger Method
Gets the cached error tagger for a given ITextBuffer.
Namespace: Microsoft.VisualStudio.Text.Adornments
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaración
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>
Parameters
- textBuffer
Type: Microsoft.VisualStudio.Text.ITextBuffer
The ITextBuffer for which to get the error tagger.
Return Value
Type: Microsoft.VisualStudio.Text.Tagging.SimpleTagger<ErrorTag>
The error tagger for the text buffer.
Remarks
If one does not exist, creates and caches a new SimpleTagger<T> with the ITextBuffer.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.