CK-Text CK-Text
    Show / Hide Table of Contents

    Class ActivityMonitorErrorCounter.State

    Encapsulates error information. The ToString() method displays the conclusion in a default text format.

    Inheritance
    Object
    ActivityMonitorErrorCounter.State
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: CK.Core
    Assembly: CK.ActivityMonitor.dll
    Syntax
    public class State

    Properties

    | Improve this Doc View Source

    ErrorCount

    Gets the current number of errors.

    Declaration
    public int ErrorCount { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    FatalCount

    Gets the current number of fatal errors.

    Declaration
    public int FatalCount { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    HasError

    Gets whether an error or a fatal occurred.

    Declaration
    public bool HasError { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    HasWarnOrError

    Gets whether a fatal, an error or a warn occurred.

    Declaration
    public bool HasWarnOrError { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    MaxLogLevel

    Gets the current maximum LogLevel.

    Declaration
    public LogLevel MaxLogLevel { get; }
    Property Value
    Type Description
    LogLevel
    | Improve this Doc View Source

    WarnCount

    Gets the current number of warnings.

    Declaration
    public int WarnCount { get; }
    Property Value
    Type Description
    Int32

    Methods

    | Improve this Doc View Source

    ClearError()

    Resets FatalCount and ErrorCount.

    Declaration
    public void ClearError()
    | Improve this Doc View Source

    ClearWarn(Boolean)

    Resets current WarnCount, and optionnaly FatalCount and ErrorCount.

    Declaration
    public void ClearWarn(bool clearError = false)
    Parameters
    Type Name Description
    Boolean clearError
    | Improve this Doc View Source

    ToString()

    Gets the current message if HasWarnOrError is true, otherwise null.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    Formatted message or null if no error nor warning occurred.

    Overrides
    Object.ToString()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2015-2017 Invenietis
    Generated by DocFX