Share via


ValidationContext.ConstructValidationMessage Method

Definition

Construct a validation message. Override this method to construct a custom validation message.

protected:
 virtual Microsoft::VisualStudio::Modeling::Validation::ValidationMessage ^ ConstructValidationMessage(System::String ^ description, System::String ^ code, Microsoft::VisualStudio::Modeling::Validation::ViolationType violationType, ... cli::array <Microsoft::VisualStudio::Modeling::ModelElement ^> ^ elements);
protected virtual Microsoft.VisualStudio.Modeling.Validation.ValidationMessage ConstructValidationMessage (string description, string code, Microsoft.VisualStudio.Modeling.Validation.ViolationType violationType, params Microsoft.VisualStudio.Modeling.ModelElement[] elements);
abstract member ConstructValidationMessage : string * string * Microsoft.VisualStudio.Modeling.Validation.ViolationType * Microsoft.VisualStudio.Modeling.ModelElement[] -> Microsoft.VisualStudio.Modeling.Validation.ValidationMessage
override this.ConstructValidationMessage : string * string * Microsoft.VisualStudio.Modeling.Validation.ViolationType * Microsoft.VisualStudio.Modeling.ModelElement[] -> Microsoft.VisualStudio.Modeling.Validation.ValidationMessage
Protected Overridable Function ConstructValidationMessage (description As String, code As String, violationType As ViolationType, ParamArray elements As ModelElement()) As ValidationMessage

Parameters

description
String

message description

code
String

message code

violationType
ViolationType

type of message (error, warning or informational message)

elements
ModelElement[]

elements that the message applies to

Returns

Applies to