AuthoringSink.AddError Method

Definition

Overloads

AddError(String, String, TextSpan, Severity)
AddError(String, String, TextSpan, Severity, TaskCategory)

Add an error message. This method also filters out duplicates so you only see the unique errors in the error list window.

AddError(String, String, TextSpan, Severity)

public:
 virtual void AddError(System::String ^ path, System::String ^ message, Microsoft::VisualStudio::TextManager::Interop::TextSpan context, Microsoft::VisualStudio::Package::Severity sev);
public:
 virtual void AddError(Platform::String ^ path, Platform::String ^ message, Microsoft::VisualStudio::TextManager::Interop::TextSpan context, Microsoft::VisualStudio::Package::Severity sev);
 virtual void AddError(std::wstring const & path, std::wstring const & message, Microsoft::VisualStudio::TextManager::Interop::TextSpan context, Microsoft::VisualStudio::Package::Severity sev);
public virtual void AddError (string path, string message, Microsoft.VisualStudio.TextManager.Interop.TextSpan context, Microsoft.VisualStudio.Package.Severity sev);
abstract member AddError : string * string * Microsoft.VisualStudio.TextManager.Interop.TextSpan * Microsoft.VisualStudio.Package.Severity -> unit
override this.AddError : string * string * Microsoft.VisualStudio.TextManager.Interop.TextSpan * Microsoft.VisualStudio.Package.Severity -> unit
Public Overridable Sub AddError (path As String, message As String, context As TextSpan, sev As Severity)

Parameters

path
String
message
String
context
TextSpan
sev
Severity

Applies to

AddError(String, String, TextSpan, Severity, TaskCategory)

Add an error message. This method also filters out duplicates so you only see the unique errors in the error list window.

 virtual void AddError(std::wstring const & path, std::wstring const & message, Microsoft::VisualStudio::TextManager::Interop::TextSpan context, Microsoft::VisualStudio::Package::Severity sev, Microsoft::VisualStudio::Shell::TaskCategory category = Microsoft.VisualStudio.Shell.TaskCategory.BuildCompile);
public virtual void AddError (string path, string message, Microsoft.VisualStudio.TextManager.Interop.TextSpan context, Microsoft.VisualStudio.Package.Severity sev, Microsoft.VisualStudio.Shell.TaskCategory category = Microsoft.VisualStudio.Shell.TaskCategory.BuildCompile);
abstract member AddError : string * string * Microsoft.VisualStudio.TextManager.Interop.TextSpan * Microsoft.VisualStudio.Package.Severity * Microsoft.VisualStudio.Shell.TaskCategory -> unit
override this.AddError : string * string * Microsoft.VisualStudio.TextManager.Interop.TextSpan * Microsoft.VisualStudio.Package.Severity * Microsoft.VisualStudio.Shell.TaskCategory -> unit
Public Overridable Sub AddError (path As String, message As String, context As TextSpan, sev As Severity, Optional category As TaskCategory = Microsoft.VisualStudio.Shell.TaskCategory.BuildCompile)

Parameters

path
String
message
String
context
TextSpan
sev
Severity
category
TaskCategory

Applies to