Condividi tramite


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

'Dichiarazione
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

  • 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

See Also

Reference

ValidationMessage Class

ValidationMessage Overload

Microsoft.VisualStudio.Modeling.Validation Namespace