Source.CreateErrorTaskItem Yöntem

Tanım

Bir DocumentTask ayrıştırma hatasını temsil eden bir nesne örneği oluşturur.

Aşırı Yüklemeler

CreateErrorTaskItem(TextSpan, MARKERTYPE, String)

Sağlanan metin, işaret türü ve dosya adı için Hata Listesi yeni bir hata görev öğesi oluşturur.

CreateErrorTaskItem(TextSpan, String, String, TaskPriority, TaskCategory, MARKERTYPE, TaskErrorCategory)

Sağlanan metin, dosya adı, ileti, öncelik, kategori, işaret türü ve hata türü için yeni bir hata görev öğesi oluşturur Hata Listesi.

Açıklamalar

Bu yöntemler genellikle DocumentTask görev penceresinde bir hata göstermek için yeni bir nesne oluşturmak üzere çağırılır. Her yöntem bir nesne içindeki bir metin işaretçisi, kaynak dosya yayılımı ve kaynak dosya adı ve DocumentTask ardından bu nesneyi döndürür.

DocumentTaskNesne, bir kullanıcı hata görev penceresindeki öğeye çift tıkladığında kullanılır; kaynak dosya açılır (zaten açık değilse) ve imleç belirtilen yayılmada konumlandırılır.

CreateErrorTaskItem(TextSpan, MARKERTYPE, String)

Sağlanan metin, işaret türü ve dosya adı için Hata Listesi yeni bir hata görev öğesi oluşturur.

public:
 virtual Microsoft::VisualStudio::Package::DocumentTask ^ CreateErrorTaskItem(Microsoft::VisualStudio::TextManager::Interop::TextSpan span, Microsoft::VisualStudio::TextManager::Interop::MARKERTYPE markerType, System::String ^ filename);
public virtual Microsoft.VisualStudio.Package.DocumentTask CreateErrorTaskItem (Microsoft.VisualStudio.TextManager.Interop.TextSpan span, Microsoft.VisualStudio.TextManager.Interop.MARKERTYPE markerType, string filename);
abstract member CreateErrorTaskItem : Microsoft.VisualStudio.TextManager.Interop.TextSpan * Microsoft.VisualStudio.TextManager.Interop.MARKERTYPE * string -> Microsoft.VisualStudio.Package.DocumentTask
override this.CreateErrorTaskItem : Microsoft.VisualStudio.TextManager.Interop.TextSpan * Microsoft.VisualStudio.TextManager.Interop.MARKERTYPE * string -> Microsoft.VisualStudio.Package.DocumentTask
Public Overridable Function CreateErrorTaskItem (span As TextSpan, markerType As MARKERTYPE, filename As String) As DocumentTask

Parametreler

span
TextSpan

Bir TextSpan metin bloğunu tanımlayan bir yapı.

markerType
MARKERTYPE

Sabit listesinin bir üyesi Microsoft.VisualStudio.TextManager.MARKERTYPE .

filename
String

Dosyanın adı.

Döndürülenler

DocumentTask

Yeni bir DocumentTask örneği.

Şunlara uygulanır

CreateErrorTaskItem(TextSpan, String, String, TaskPriority, TaskCategory, MARKERTYPE, TaskErrorCategory)

Sağlanan metin, dosya adı, ileti, öncelik, kategori, işaret türü ve hata türü için yeni bir hata görev öğesi oluşturur Hata Listesi.

public:
 virtual Microsoft::VisualStudio::Package::DocumentTask ^ CreateErrorTaskItem(Microsoft::VisualStudio::TextManager::Interop::TextSpan span, System::String ^ filename, System::String ^ message, Microsoft::VisualStudio::Shell::TaskPriority priority, Microsoft::VisualStudio::Shell::TaskCategory category, Microsoft::VisualStudio::TextManager::Interop::MARKERTYPE markerType, Microsoft::VisualStudio::Shell::TaskErrorCategory errorCategory);
public virtual Microsoft.VisualStudio.Package.DocumentTask CreateErrorTaskItem (Microsoft.VisualStudio.TextManager.Interop.TextSpan span, string filename, string message, Microsoft.VisualStudio.Shell.TaskPriority priority, Microsoft.VisualStudio.Shell.TaskCategory category, Microsoft.VisualStudio.TextManager.Interop.MARKERTYPE markerType, Microsoft.VisualStudio.Shell.TaskErrorCategory errorCategory);
abstract member CreateErrorTaskItem : Microsoft.VisualStudio.TextManager.Interop.TextSpan * string * string * Microsoft.VisualStudio.Shell.TaskPriority * Microsoft.VisualStudio.Shell.TaskCategory * Microsoft.VisualStudio.TextManager.Interop.MARKERTYPE * Microsoft.VisualStudio.Shell.TaskErrorCategory -> Microsoft.VisualStudio.Package.DocumentTask
override this.CreateErrorTaskItem : Microsoft.VisualStudio.TextManager.Interop.TextSpan * string * string * Microsoft.VisualStudio.Shell.TaskPriority * Microsoft.VisualStudio.Shell.TaskCategory * Microsoft.VisualStudio.TextManager.Interop.MARKERTYPE * Microsoft.VisualStudio.Shell.TaskErrorCategory -> Microsoft.VisualStudio.Package.DocumentTask
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

Parametreler

span
TextSpan

Bir TextSpan metin bloğunu tanımlayan bir yapı.

filename
String

Dosyanın adı.

message
String

Hata iletisi.

priority
TaskPriority

Sabit listesinin bir üyesi TaskPriority .

category
TaskCategory

Sabit listesinin bir üyesi TaskCategory .

markerType
MARKERTYPE

Sabit listesinin bir üyesi Microsoft.VisualStudio.TextManager.MARKERTYPE .

errorCategory
TaskErrorCategory

Microsoft.VisualStudio.Shell.ErrorCategoryNumaralandırma üyesi, hata düzeyini tanımlar.

Döndürülenler

DocumentTask

Yeni bir DocumentTask örneği.

Şunlara uygulanır