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 (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
<FlagsAttribute> _
Public Enumeration ViolationType
'Usage
Dim instance As ViolationType
[FlagsAttribute]
public enum ViolationType
[FlagsAttribute]
public enum class 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 |
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.