ValidationContext::ConstructValidationMessage Method (String^, String^, ViolationType, array<ModelElement^>^)
Visual Studio 2015
Constructs a validation message. You can override this method to construct a custom validation message.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
protected: virtual ValidationMessage^ ConstructValidationMessage( String^ description, String^ code, ViolationType violationType, ... array<ModelElement^>^ elements )
Parameters
- description
-
Type:
System::String^
The message description.
- code
-
Type:
System::String^
A code that identifies the message.
- violationType
-
Type:
Microsoft.VisualStudio.Modeling.Validation::ViolationType
The type of message (error, warning, or informational message).
- elements
-
Type:
array<Microsoft.VisualStudio.Modeling::ModelElement^>^
The elements to which the message applies.
Return Value
Type: Microsoft.VisualStudio.Modeling.Validation::ValidationMessage^The validation message; otherwise, null, if there is no validation message.
Show: