ModelingDocData.AddErrorListItem Method
Adds an error or warning message that you can use with the document.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)
Syntax
'Declaration
Public Overridable Sub AddErrorListItem ( _
task As ModelingErrorListItem _
)
public virtual void AddErrorListItem(
ModelingErrorListItem task
)
public:
virtual void AddErrorListItem(
ModelingErrorListItem^ task
)
abstract AddErrorListItem :
task:ModelingErrorListItem -> unit
override AddErrorListItem :
task:ModelingErrorListItem -> unit
public function AddErrorListItem(
task : ModelingErrorListItem
)
Parameters
task
Type: Microsoft.VisualStudio.Modeling.Shell.ModelingErrorListItemThe error or warning message.
Remarks
Error messages and warning messages appear in the Error List window.
.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.