Condividi tramite


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

'Declaration
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

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

See Also

Reference

IErrorProviderFactory Interface

Microsoft.VisualStudio.Text.Adornments Namespace