ValidationContextExtensions.LogWarning Method (ValidationContext, String, String, IElement[])
Display a warning message in the Visual Studio error list.
Namespace: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
Syntax
public static void LogWarning(
this ValidationContext context,
string description,
string code,
params IElement[] elements
)
public:
[ExtensionAttribute]
static void LogWarning(
ValidationContext^ context,
String^ description,
String^ code,
... array<IElement^>^ elements
)
static member LogWarning :
context:ValidationContext *
description:string *
code:string *
[<ParamArrayAttribute>] elements:IElement[] -> unit
<ExtensionAttribute>
Public Shared Sub LogWarning (
context As ValidationContext,
description As String,
code As String,
ParamArray elements As IElement()
)
Parameters
description
Type: System.StringMessage displayed in the error window.
code
Type: System.StringA unique identifier for this message.
elements
Type: Microsoft.VisualStudio.Uml.Classes.IElement[]Elements that should be selected when the user double-clicks the error message.
See Also
ValidationContextExtensions Class
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Namespace
Return to top