ErrorTag 构造函数 (String, Object)

初始化指定类型的 ErrorTag 的新实例。

命名空间:  Microsoft.VisualStudio.Text.Tagging
程序集:  Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)

语法

声明
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
)

参数

  • errorType
    类型:String

    使用的错误类型。

  • toolTipContent
    类型:Object

    要显示的工具提示内容。 可以为 nullnull 引用(在 Visual Basic 中为 Nothing)。

异常

异常 条件
ArgumentNullException

errorType 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参阅

参考

ErrorTag 类

ErrorTag 重载

Microsoft.VisualStudio.Text.Tagging 命名空间