This member overrides ValidationContext.ConstructValidationMessage(String, String, ViolationType, []).
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Protected Overrides Function ConstructValidationMessage ( _
description As String, _
code As String, _
violationType As ViolationType, _
ParamArray elements As ModelElement() _
) As ValidationMessage
'使用
Dim description As String
Dim code As String
Dim violationType As ViolationType
Dim elements As ModelElement()
Dim returnValue As ValidationMessage
returnValue = Me.ConstructValidationMessage(description, _
code, violationType, elements)
protected override ValidationMessage ConstructValidationMessage(
string description,
string code,
ViolationType violationType,
params ModelElement[] elements
)
protected:
virtual ValidationMessage^ ConstructValidationMessage(
String^ description,
String^ code,
ViolationType violationType,
... array<ModelElement^>^ elements
) override
protected override function ConstructValidationMessage(
description : String,
code : String,
violationType : ViolationType,
... elements : ModelElement[]
) : ValidationMessage
Parameters
- description
Type: System.String
- code
Type: System.String
- violationType
Type: Microsoft.VisualStudio.Modeling.Validation.ViolationType
- elements
Type: []
Return Value
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationMessage
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.