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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaração
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.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.
- line
Type: System.Int32
The line number where the error occurs.
- column
Type: System.Int32
The 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.