ValidationContext.ConstructValidationMessage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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