ValidationMessage Constructors

Definition

Overloads

ValidationMessage(ValidationContext, String)

constructor

ValidationMessage(ValidationContext, String, Int32, Int32)

ctor

ValidationMessage(ValidationContext, String, String, ViolationType)

constructor

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

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

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

description
String

problem description (displayed to the user)

code
String

message code

Applies to