|
|
Message
|
[FlagsAttribute] public enum MessageFlags
| Member name | Value | Description |
|---|---|---|
| None | 0 | No flags are specified. |
| UsageIssue | 2 | Indicates that a segment of code is not being used properly or ideally. |
| BugReport | 4 | Indicates that a bug in the code exists somewhere. This is helpful when the programmer suspects that certain exceptions were not properly handled. |
| PerformanceIssue | 8 | A flag indicating that a performance related issue has occurred. |
| SecurityMessage | 16 | Indicates this message has security implications with it. Such as a successful/unsuccessful authentication. |
| SystemHealth | 32 | These messages in generally should always be logged because they report the state of the current system's health. Normally this will be when the system health is abnormal, for example, something abnormal is happening in the background that is important to note and can assist debugging other components. Messages raised here would include First Chance Exceptions and exceptions in log message routing (such as Message Suppression). |
The MessageFlags type exposes the following members.
| Name | Description | |
|---|---|---|
| GetDescription |
Retrieves the description of the value that this Enum represents extracted from the DescriptionAttribute, or the enumeration name
if no description is available.
(Defined by EnumExtensions) | |
| GetFormattedName |
Retrieves a formatted name of the value that this Enum represents for visual display.
(Defined by EnumExtensions) |