次の方法で共有


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
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'宣言
Public Overridable Function CreateErrorTaskItem ( _
    span As TextSpan, _
    filename As String, _
    message As String, _
    priority As TaskPriority, _
    category As TaskCategory, _
    markerType As MARKERTYPE, _
    errorCategory As TaskErrorCategory _
) As DocumentTask
public virtual DocumentTask CreateErrorTaskItem(
    TextSpan span,
    string filename,
    string message,
    TaskPriority priority,
    TaskCategory category,
    MARKERTYPE markerType,
    TaskErrorCategory errorCategory
)

Parameters

Return Value

Type: Microsoft.VisualStudio.Package.DocumentTask
A new instance of DocumentTask.

.NET Framework Security

See Also

Reference

Source Class

CreateErrorTaskItem Overload

Microsoft.VisualStudio.Package Namespace