ValidationContextExtensions.LogMessage Method

Display an information message in the Visual Studio error list.

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


<ExtensionAttribute> _
Public Shared Sub LogMessage ( _
    context As ValidationContext, _
    description As String, _
    code As String, _
    ParamArray elements As IElement() _
public static void LogMessage(
    this ValidationContext context,
    string description,
    string code,
    params IElement[] elements
static void LogMessage(
    ValidationContext^ context, 
    String^ description, 
    String^ code, 
    ... array<IElement^>^ elements
static member LogMessage : 
        context:ValidationContext * 
        description:string * 
        code:string * 
        elements:IElement[] -> unit
public static function LogMessage(
    context : ValidationContext, 
    description : String, 
    code : String, 
    ... elements : IElement[]


  • description
    Type: System.String

    Message displayed in the error window.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ValidationContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also


ValidationContextExtensions Class

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Namespace