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: StringThe description of the error.
code
Type: StringThe code that is assigned to the error.
elements
Type: array<Microsoft.VisualStudio.Modeling.ModelElement[]The model elements that caused the error.
Return Value
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationMessage
The error message.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.