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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。