IErrorProviderFactory.GetErrorTagger(ITextBuffer) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.