IErrorProviderFactory.GetErrorTagger(ITextBuffer) Method

Definition

Gets the cached error tagger for a given ITextBuffer. If one does not exist, creates and caches a new SimpleTagger<T> with the ITextBuffer.

public:
 Microsoft::VisualStudio::Text::Tagging::SimpleTagger<Microsoft::VisualStudio::Text::Tagging::ErrorTag ^> ^ GetErrorTagger(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
public Microsoft.VisualStudio.Text.Tagging.SimpleTagger<Microsoft.VisualStudio.Text.Tagging.ErrorTag> GetErrorTagger (Microsoft.VisualStudio.Text.ITextBuffer textBuffer);
abstract member GetErrorTagger : Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.Text.Tagging.SimpleTagger<Microsoft.VisualStudio.Text.Tagging.ErrorTag>
Public Function GetErrorTagger (textBuffer As ITextBuffer) As SimpleTagger(Of ErrorTag)

Parameters

textBuffer
ITextBuffer

The ITextBuffer with which to get the error tagger.

Returns

The cached error tagger for the textBuffer.

Remarks

If one does not exist, creates and caches a new SimpleTagger<T> with the ITextBuffer.

Applies to