Freigeben über


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)

Syntax

'Declaration
Public Enumeration Severity
public enum Severity
public enum class Severity
type Severity
public enum Severity

Members

Member name Description
Error Indicates an error in parsing, however, parsing may have been able to continue.
Fatal Indicates a fatal error in parsing that prevented any further parsing.
Hint Indicates a comment returned by the parser.
Warning Indicates a warning returned by the parser.

Remarks

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.

See Also

Reference

Microsoft.VisualStudio.Package Namespace