Partilhar via


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Declaração
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

  • code
    Type: System.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