DiagnosticItemID Class |
A message can have a number of DiagnosticsValue attached, giving a number and a item type. The unit is always the default unit of the type (SI).
Namespace: DHI.Mike1D.Generic
The DiagnosticItemID type exposes the following members.
Name | Description | |
---|---|---|
DiagnosticItemID(String) |
Create diagnostic item without values
| |
DiagnosticItemID(String, ListDiagnosticsValue) |
Create diagnostic item with list of values
| |
DiagnosticItemID(String, Object) |
Create diagnostic item with list of values
|
Name | Description | |
---|---|---|
AdditionalInfo |
Additional information about diagnostics item. Used to append time step
information to errors in HDModule.
(Inherited from DiagnosticItem.) | |
Diagnostics |
The diagnostics that the item belongs to.
(Inherited from DiagnosticItem.)This is automatically set when item is added to diagnostics object. | |
Hint |
Diagnostics hint
(Overrides DiagnosticItemHint.) | |
Location |
Location of message
(Inherited from DiagnosticItem.) | |
Message |
Diagnostics message with value placeholders replaced by values.
Value place holder can be modified by setting the Tokens.
(Inherited from DiagnosticItem.) | |
MessageID |
ID of error in item.
(Overrides DiagnosticItemMessageID.)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
(Overrides DiagnosticItemMessageNoValues.) | |
Tokens |
Set tokens for each of the Values. Defaults to {0}, {1}, {2} etc
(Inherited from DiagnosticItem.) | |
Values |
Diagnostic values
(Inherited from DiagnosticItem.) |
Name | Description | |
---|---|---|
CheckNumberOfValues |
Check if number of diagnostic values matches number of brackets
(Inherited from DiagnosticItem.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HandleValues |
Examine each arg and put it into an appropriate diagnostic value
(Inherited from DiagnosticItem.) | |
HasHint |
Returns true if this item has an associated hint. The hint can be accessed throught the Hint property.
(Overrides DiagnosticItemHasHint.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NumberOfValues |
Return the number of values that this item expects
(Inherited from DiagnosticItem.) | |
SetLocation(String) |
Location of error message
(Inherited from DiagnosticItem.) | |
SetLocation(String, Double) |
Location of error message
(Inherited from DiagnosticItem.) | |
SetLocation(DiagnosticsLocationType, String) |
Location of error message
(Inherited from DiagnosticItem.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
_location | Location where item was generated (Inherited from DiagnosticItem.) | |
_message | Actual message (Inherited from DiagnosticItem.) | |
_messageId | ID of message (Inherited from DiagnosticItem.) | |
_values | Values associated with item (Inherited from DiagnosticItem.) |