Export (0) Print
Expand All

Severity Enumeration

Specifies the severity of a parser error in a language service.

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

public enum Severity

Member nameDescription
ErrorIndicates an error in parsing, however, parsing may have been able to continue.
FatalIndicates a fatal error in parsing that prevented any further parsing.
HintIndicates a comment returned by the parser.
WarningIndicates a warning returned by the parser.

The values in this enumeration are used to classify the warnings and errors that can come from a parser in a language service. All of the warnings and errors returned from a parsing operation are reported to the Error List Options window as ErrorTasks. The values listed here also determine what glyph to show next to each message.

The parser specifies the severity of an error in a call to the AddError method in the AuthoringSink class.

Show:
© 2014 Microsoft