Creates a fatal error for validation and logs a message in the validation context.
Namespace: Microsoft.VisualStudio.Modeling.Validation
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Function LogFatal ( _
description As String, _
code As String, _
ParamArray elements As ModelElement() _
) As ValidationMessage
'使用
Dim instance As ValidationContext
Dim description As String
Dim code As String
Dim elements As ModelElement()
Dim returnValue As ValidationMessage
returnValue = instance.LogFatal(description, _
code, elements)
public ValidationMessage LogFatal(
string description,
string code,
params ModelElement[] elements
)
public:
ValidationMessage^ LogFatal(
String^ description,
String^ code,
... array<ModelElement^>^ elements
)
public function LogFatal(
description : String,
code : String,
... elements : ModelElement[]
) : ValidationMessage
Parameters
description
Type: System.StringThe description of the error.
code
Type: System.StringThe code that is assigned to the error.
elements
Type: []The model elements that caused the error.
Return Value
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationMessage
The error message.
Permissions
- 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.