ValidationContextExtensions::LogError Method (ValidationContext^, String^, String^, array<IElement^>^)
Visual Studio 2015
Display an error message in the Visual Studio error list. When the user attempts to save the model, ask whether to continue.
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
public: [ExtensionAttribute] static void LogError( ValidationContext^ context, String^ description, String^ code, ... array<IElement^>^ elements )
Parameters
- 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^>^
Show: