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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

Syntax

'Declaration
<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.
Fatal Marks a Fatal message, that should prevent opening
Message Indicates a ValidationMessage that represents a message.
Warning Indicates a ValidationMessage that represents a warning.

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.

See Also

Reference

Microsoft.VisualStudio.Modeling.Validation Namespace