Freigeben über


ErrorTag-Konstruktor (String, Object)

Initialisiert eine neue Instanz eines ErrorTag mit dem angegebenen Typ.

Namespace:  Microsoft.VisualStudio.Text.Tagging
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
Public Sub New ( _
    errorType As String, _
    toolTipContent As Object _
)
public ErrorTag(
    string errorType,
    Object toolTipContent
)
public:
ErrorTag(
    String^ errorType, 
    Object^ toolTipContent
)
new : 
        errorType:string * 
        toolTipContent:Object -> ErrorTag
public function ErrorTag(
    errorType : String, 
    toolTipContent : Object
)

Parameter

  • errorType
    Typ: String

    Der zu verwendende Fehlertyp.

  • toolTipContent
    Typ: Object

    Der anzuzeigende QuickInfo-Inhalt. Dieser kann nullein Nullverweis (Nothing in Visual Basic) lauten.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

errorType ist nullein Nullverweis (Nothing in Visual Basic).

.NET Framework-Sicherheit

Siehe auch

Referenz

ErrorTag Klasse

ErrorTag-Überladung

Microsoft.VisualStudio.Text.Tagging-Namespace