IDiagnosticItem Interface

A DiagnosticsItem contains a message, additional information and potentially also list the values that vary in the message string.

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public interface IDiagnosticItem

Properties

AdditionalInfo Additional information about diagnostics item. Could be time of simulation when message was produced.
Diagnostics The diagnostics that the item belongs to.

This is automatically set when item is added to diagnostics object.

Hint Diagnostics hint
Location Location of message
Message Diagnostics message. Including values from Values
MessageID ID of error in item.

Each kind of error will have an id which does not change between computers. The Message change, if localized messages exist for the system language.

MessageNoValues Diagnostics message with value placeholders instead of actual values.
Values List of values associated with this item

Methods

GetMessage Diagnostics message. Including values from Values
HasHint Returns true if this item has an associated hint. The hint can be accessed throught the Hint property.

See Also