ViolationType Enumeration

 

Represents the type of violation that has occurred during validation.

Namespace:   Microsoft.VisualStudio.Modeling.Validation
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

[FlagsAttribute]
public enum class ViolationType

Member nameDescription
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.

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.

Return to top
Show: