次の方法で共有


Severity Enum

Definition

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

public enum class Severity
public enum class Severity
enum Severity
public enum Severity
type Severity = 
Public Enum Severity
Inheritance
Severity

Fields

Name Value Description
Hint 0

Indicates a comment returned by the parser.

Warning 1

Indicates a warning returned by the parser.

Error 2

Indicates an error in parsing, however, parsing may have been able to continue.

Fatal 3

Indicates a fatal error in parsing that prevented any further parsing.

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.

Applies to