ValidationMessage Constructor (ValidationContext^, String^, String^, ViolationType)
Visual Studio 2015
Initializes a new instance of the ValidationMessage class using a context, a description, a code, and a violation type for the message.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
public protected: ValidationMessage( ValidationContext^ context, String^ description, String^ code, ViolationType type )
Parameters
- context
-
Type:
Microsoft.VisualStudio.Modeling.Validation::ValidationContext^
The validation context for the ValidationMessage.
- description
-
Type:
System::String^
A description of the problem. This text will appear in the Visual Studio Output window.
- code
-
Type:
System::String^
An identifier for the message.
- type
-
Type:
Microsoft.VisualStudio.Modeling.Validation::ViolationType
The type of ValidationMessage (error, warning, or message).
Show: