ValidationContextExtensions::LogViolation Method (ValidationContext^, ViolationType, String^, String^, array<IElement^>^)

 

Display a message of a specified kind in the Visual Studio error list. Generic version of the other Log methods.

Namespace:   Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
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

context
Type: Microsoft.VisualStudio.Modeling.Validation::ValidationContext^

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.

Return to top
Show: