ValidationMessage Constructor (ValidationContext, String, Int32, Int32)
Initializes a new instance of the ValidationMessage class using a context, a description, a line number, and a column number for the message.
Namespace: Microsoft.VisualStudio.Modeling.Validation
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
Protected Sub New ( _
context As ValidationContext, _
description As String, _
line As Integer, _
column As Integer _
)
protected ValidationMessage(
ValidationContext context,
string description,
int line,
int column
)
protected:
ValidationMessage(
ValidationContext^ context,
String^ description,
int line,
int column
)
new :
context:ValidationContext *
description:string *
line:int *
column:int -> ValidationMessage
protected function ValidationMessage(
context : ValidationContext,
description : String,
line : int,
column : int
)
Parameters
context
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationContextThe validation context for the ValidationMessage.
description
Type: StringA description of the problem. This text will appear in the Visual Studio Output window.
line
Type: Int32The line number where the error occurs.
column
Type: Int32The column in a line of text where the error occurs.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.