QueryDiagnostic Class

Describes a problem in a query, such as an unbalanced parenthesis or an unknown key, and where it is.

public sealed class QueryDiagnostic

Remarks

A query with diagnostics is still read: the part a diagnostic reports is read as text, or as described by QueryDiagnosticCode. Use the diagnostics to show the problem to the user.

Properties

NameDescription
CodeGets the kind of problem.
MessageGets a message describing the problem, in English.
SpanGets the part of the query the problem is about.

Gets the kind of problem.

public QueryDiagnosticCode Code { get; }

Property value

QueryDiagnosticCode

Gets a message describing the problem, in English.

public string Message { get; }

Property value

string

Gets the part of the query the problem is about.

public TextSpan Span { get; }

Property value

TextSpan

Methods

NameDescription
ToString()
public override string ToString()

Returns

string

No documentation is available.