Search Results for

    Show / Hide Table of Contents

    Class Severity

    How serious an Error is. Compared by Value.

    Inheritance
    object
    Severity
    Implements
    IEquatable<Severity>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: ZhEaIsNsAaBn.Utilities
    Assembly: ZhEaIsNsAaBn.LayerResponse.dll
    Syntax
    [JsonConverter(typeof(Severity.SeverityJsonConverter))]
    public sealed record Severity : IEquatable<Severity>
    Remarks

    JSON: a plain string, e.g. "High" — not {"Value":"High"} (the default for a single-property record). Unknown writes as "Unknown" and reads back from "Unknown" or ""; its in-memory Value stays an empty string.

    Fields

    High

    Serious; needs attention.

    Declaration
    public static readonly Severity High
    Field Value
    Type Description
    Severity

    Low

    Minor.

    Declaration
    public static readonly Severity Low
    Field Value
    Type Description
    Severity

    Medium

    Normal; the default for new errors.

    Declaration
    public static readonly Severity Medium
    Field Value
    Type Description
    Severity

    Unknown

    Not set. Value is an empty string.

    Declaration
    public static readonly Severity Unknown
    Field Value
    Type Description
    Severity

    Properties

    Value

    The severity name: High, Medium, Low, or empty for Unknown.

    Declaration
    public string Value { get; init; }
    Property Value
    Type Description
    string

    Methods

    Deconstruct(out string)

    Gets the severity name.

    Declaration
    public void Deconstruct(out string value)
    Parameters
    Type Name Description
    string value

    Receives Value.

    Implements

    IEquatable<T>
    In this article
    Back to top Generated by DocFX