ErrorTag Constructor (String, Object)
Initializes a new instance of a ErrorTag of the specified type.
Namespace: Microsoft.VisualStudio.Text.Tagging
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Dichiarazione
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
)
Parameters
- errorType
Type: System.String
The type of error to use.
- toolTipContent
Type: System.Object
The tooltip content to display. May be nulla null reference (Nothing in Visual Basic).
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | errorType is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.