VsValidationContext.ConstructValidationMessage Method
Overrideable method to allow the derived class to create messages.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Declaração
Protected Overrides Function ConstructValidationMessage ( _
description As String, _
code As String, _
violationType As ViolationType, _
ParamArray elements As ModelElement() _
) As ValidationMessage
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
abstract ConstructValidationMessage :
description:string *
code:string *
violationType:ViolationType *
elements:ModelElement[] -> ValidationMessage
override ConstructValidationMessage :
description:string *
code:string *
violationType:ViolationType *
elements:ModelElement[] -> ValidationMessage
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: array<Microsoft.VisualStudio.Modeling.ModelElement[]
Return Value
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationMessage
.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.