ValidationContext.LogFatal Method

Creates a fatal error for validation and logs a message in the validation context.

Namespace:  Microsoft.VisualStudio.Modeling.Validation
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)

Syntax

'Declaration
Public Function LogFatal ( _
    description As String, _
    code As String, _
    ParamArray elements As ModelElement() _
) As ValidationMessage
public ValidationMessage LogFatal(
    string description,
    string code,
    params ModelElement[] elements
)
public:
ValidationMessage^ LogFatal(
    String^ description, 
    String^ code, 
    ... array<ModelElement^>^ elements
)
member LogFatal : 
        description:string * 
        code:string * 
        elements:ModelElement[] -> ValidationMessage
public function LogFatal(
    description : String, 
    code : String, 
    ... elements : ModelElement[]
) : ValidationMessage

Parameters

  • description
    Type: String

    The description of the error.

  • code
    Type: String

    The code that is assigned to the error.

Return Value

Type: Microsoft.VisualStudio.Modeling.Validation.ValidationMessage
The error message.

.NET Framework Security

See Also

Reference

ValidationContext Class

Microsoft.VisualStudio.Modeling.Validation Namespace