ViolationType Enumeration
Represents the type of violation that has occurred during validation.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: Microsoft.VisualStudio.Modeling.Validation
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaração
<FlagsAttribute> _
Public Enumeration ViolationType
[FlagsAttribute]
public enum ViolationType
[FlagsAttribute]
public enum class ViolationType
[<FlagsAttribute>]
type ViolationType
public enum ViolationType
Members
Member name | Description | |
---|---|---|
Error | Indicates a ValidationMessage that represents an error. | |
Warning | Indicates a ValidationMessage that represents a warning. | |
Message | Indicates a ValidationMessage that represents a message. | |
Fatal | Marks a Fatal message, that should prevent opening |
Remarks
When validation occurs, a ValidationContext method (LogError, LogWarning, or LogMessage) creates a ValidationMessage. The Type property of the ValidationMessage uses this enumeration to indicate the type of violation that a ValidationMessage represents.