Diagnostic Class

Diagnostic class

One diagnostic. Diagnostic.Code, Diagnostic.Phase and Diagnostic.Severity are stable vocabularies to match on; Diagnostic.Message is prose for people.

public sealed class Diagnostic

Properties

NameDescription
Code { get; }The stable code, e.g. Drop, ResourceMissing, ResourceDenied, ScriptsDisabled, ScriptError, ScriptLimitExceeded, PageClipped, PageScaled, PageOversize, FontFallback, TempCleanupFailed.
Column { get; }The column, when known. Not filled in this version.
ElementId { get; }The element id, when known. Not filled in this version.
Line { get; }The line, when known. Not filled in this version.
Message { get; }A human-readable message.
Name { get; }The thing it names: a property, feature, resource kind or limit.
PageIndex { get; }The zero-based page, when one applies.
Phase { get; }Where it arose: Load, Preparation, Layout, Paint or Output.
Severity { get; }Information, Warning or Error.
SourceUrl { get; }The source URL, query removed, when one applies.

See Also