Source::CreateErrorTaskItem Method (TextSpan, MARKERTYPE, String^)

 

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

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,
	MARKERTYPE markerType,
	String^ filename
)

Parameters

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

A TextSpan structure, which defines a block of text.

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

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

filename
Type: System::String^

The name of the file.

Return Value

Type: Microsoft.VisualStudio.Package::DocumentTask^

A new instance of DocumentTask.

Return to top
Show: