共用方式為


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 命名空間