ValidationContextExtensions::LogViolation Method (ValidationContext^, ViolationType, String^, String^, array<IElement^>^)
Visual Studio 2015
Display a message of a specified kind in the Visual Studio error list. Generic version of the other Log methods.
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
public: [ExtensionAttribute] static void LogViolation( ValidationContext^ context, ViolationType violationType, String^ description, String^ code, ... array<IElement^>^ elements )
Parameters
- violationType
-
Type:
Microsoft.VisualStudio.Modeling.Validation::ViolationType
Specify whether this is an error, warning, or information.
- description
-
Type:
System::String^
Message displayed in the error window.
- code
-
Type:
System::String^
A unique identifier for this message.
- elements
-
Type:
array<Microsoft.VisualStudio.Uml.Classes::IElement^>^
Elements that should be selected when the user double-clicks the error message.
Show: