Share via


ValidationContextExtensions Class

 

Extensions for ValidationContext.

Namespace:   Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
Assembly:  Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml.ValidationContextExtensions

Syntax

public static class ValidationContextExtensions
[ExtensionAttribute]
public ref class ValidationContextExtensions abstract sealed 
[<AbstractClass>]
[<Sealed>]
type ValidationContextExtensions = class end
<ExtensionAttribute>
Public NotInheritable Class ValidationContextExtensions

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static LogError(ValidationContext, String, String, IElement[])

Display an error message in the Visual Studio error list. When the user attempts to save the model, ask whether to continue.

System_CAPS_pubmethodSystem_CAPS_static LogFatal(ValidationContext, String, String, IElement[])

Display an error message in the Visual Studio error list. If the user attempts to save the model, warn that it might not be possible to re-open it.

System_CAPS_pubmethodSystem_CAPS_static LogMessage(ValidationContext, String, String, IElement[])

Display an information message in the Visual Studio error list.

System_CAPS_pubmethodSystem_CAPS_static LogViolation(ValidationContext, ViolationType, String, String, IElement[])

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

System_CAPS_pubmethodSystem_CAPS_static LogWarning(ValidationContext, String, String, IElement[])

Display a warning message in the Visual Studio error list.

Remarks

For more information about UML diagrams, see Create models for your app.

For more information about using the UML API, see Extend UML models and diagrams.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Namespace

Return to top