ValidationMessage Constructors
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.
Overloads
ValidationMessage(ValidationContext, String)
constructor
protected public:
ValidationMessage(Microsoft::VisualStudio::Modeling::Validation::ValidationContext ^ context, System::String ^ description);
protected internal ValidationMessage (Microsoft.VisualStudio.Modeling.Validation.ValidationContext context, string description);
new Microsoft.VisualStudio.Modeling.Validation.ValidationMessage : Microsoft.VisualStudio.Modeling.Validation.ValidationContext * string -> Microsoft.VisualStudio.Modeling.Validation.ValidationMessage
Protected Friend Sub New (context As ValidationContext, description As String)
Parameters
- context
- ValidationContext
- description
- String
problem description (this text will be surfaced to the UI)
Applies to
ValidationMessage(ValidationContext, String, Int32, Int32)
ctor
protected:
ValidationMessage(Microsoft::VisualStudio::Modeling::Validation::ValidationContext ^ context, System::String ^ description, int line, int column);
protected ValidationMessage (Microsoft.VisualStudio.Modeling.Validation.ValidationContext context, string description, int line, int column);
new Microsoft.VisualStudio.Modeling.Validation.ValidationMessage : Microsoft.VisualStudio.Modeling.Validation.ValidationContext * string * int * int -> Microsoft.VisualStudio.Modeling.Validation.ValidationMessage
Protected Sub New (context As ValidationContext, description As String, line As Integer, column As Integer)
Parameters
- context
- ValidationContext
- description
- String
- line
- Int32
- column
- Int32
Applies to
ValidationMessage(ValidationContext, String, String, ViolationType)
constructor
protected public:
ValidationMessage(Microsoft::VisualStudio::Modeling::Validation::ValidationContext ^ context, System::String ^ description, System::String ^ code, Microsoft::VisualStudio::Modeling::Validation::ViolationType type);
protected internal ValidationMessage (Microsoft.VisualStudio.Modeling.Validation.ValidationContext context, string description, string code, Microsoft.VisualStudio.Modeling.Validation.ViolationType type);
new Microsoft.VisualStudio.Modeling.Validation.ValidationMessage : Microsoft.VisualStudio.Modeling.Validation.ValidationContext * string * string * Microsoft.VisualStudio.Modeling.Validation.ViolationType -> Microsoft.VisualStudio.Modeling.Validation.ValidationMessage
Protected Friend Sub New (context As ValidationContext, description As String, code As String, type As ViolationType)
Parameters
- context
- ValidationContext
- description
- String
problem description (displayed to the user)
- code
- String
message code
- type
- ViolationType