初始化指定类型的 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。