Source::CreateErrorTaskItem Method (TextSpan, String^, String^, TaskPriority, TaskCategory, MARKERTYPE, TaskErrorCategory)

 

Creates a new error task item for the Error List, for the supplied text, file name, message, priority, category, marker type, and error type.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual DocumentTask^ CreateErrorTaskItem(
	TextSpan span,
	String^ filename,
	String^ message,
	TaskPriority priority,
	TaskCategory category,
	MARKERTYPE markerType,
	TaskErrorCategory errorCategory
)

Parameters

span
Type: Microsoft.VisualStudio.TextManager.Interop::TextSpan

A TextSpan structure, which defines a block of text.

filename
Type: System::String^

The name of the file.

message
Type: System::String^

The error message.

priority
Type: Microsoft.VisualStudio.Shell::TaskPriority

A member of the TaskPriority enumeration.

category
Type: Microsoft.VisualStudio.Shell::TaskCategory

A member of the TaskCategory enumeration.

markerType
Type: Microsoft.VisualStudio.TextManager.Interop::MARKERTYPE

A member of the T:Microsoft.VisualStudio.TextManager.MARKERTYPE enumeration.

errorCategory
Type: Microsoft.VisualStudio.Shell::TaskErrorCategory

A member of the T:Microsoft.VisualStudio.Shell.ErrorCategory enumeration, which defines the level of error.

Return Value

Type: Microsoft.VisualStudio.Package::DocumentTask^

A new instance of DocumentTask.

Return to top
Show: