Share via


ValidationContextExtensions.LogFatal Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Add a message to the error window flagged as an error, and alert the user that it might not be possible to read the model if it is saved in this state.

Namespace:  Microsoft.VisualStudio.Uml.Extensions
Assembly:  Microsoft.VisualStudio.Uml.Extensions (in Microsoft.VisualStudio.Uml.Extensions.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub LogFatal ( _
    context As ValidationContext, _
    description As String, _
    code As String, _
    ParamArray elements As IElement() _
)
'Usage
Dim context As ValidationContext
Dim description As String
Dim code As String
Dim elements As IElement()

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

Parameters

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

Reference

ValidationContextExtensions Class

ValidationContextExtensions Members

Microsoft.VisualStudio.Uml.Extensions Namespace