Xceed Grid for WinForms v4.3 Documentation
Xceed.Validation.v1.3 Assembly / Xceed.Validation Namespace / CustomValidationMessages Class / CustomValidationMessages Constructor / CustomValidationMessages Constructor(String,String,String,String,String,String,String,String,String,String,String,String,String,String,String)
A string representing the criterion's custom message for a "Between Min and Max" operator error.
A string representing the criterion's base custom message for a "Data Type" error.
A string representing the criterion's custom message for a "Date" data type error.
A string representing the criterion's custom message for a "Equal To" operator error.
A string representing the criterion's custom message for a "Greater Than" operator error.
A string representing the criterion's custom message for a "Greater Than or Equal To" operator error.
A string representing the criterion's custom message for a "In Set of Values" operator error.
A string representing the criterion's custom message for a "Less Than" operator error.
A string representing the criterion's custom message for a "Less Than or Equal To" operator error.
A string representing the criterion's custom message for a "Not Equal To" operator error.
A string representing the criterion's custom message for a "Not in Set of Values" operator error.
A string representing the criterion's custom message for a "Number" data type error.
A string representing the criterion's custom message for a "Regular Expression" error.
A string representing the criterion's custom message for a "Required Field" error.
A string representing the criterion's base custom message for any invalid input value.


In This Topic
    CustomValidationMessages Constructor(String,String,String,String,String,String,String,String,String,String,String,String,String,String,String)
    In This Topic
    Initializes a new instance of the CustomValidationMessages class using the specified messages.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal between As String, _
       ByVal dataType As String, _
       ByVal date As String, _
       ByVal equalTo As String, _
       ByVal greaterThan As String, _
       ByVal greaterThanOrEqual As String, _
       ByVal inSet As String, _
       ByVal lessThan As String, _
       ByVal lessThanOrEqual As String, _
       ByVal notEqual As String, _
       ByVal notInSet As String, _
       ByVal number As String, _
       ByVal regularExpression As String, _
       ByVal requiredField As String, _
       ByVal value As String _
    )
    'Usage
     
    Dim between As String
    Dim dataType As String
    Dim date As String
    Dim equalTo As String
    Dim greaterThan As String
    Dim greaterThanOrEqual As String
    Dim inSet As String
    Dim lessThan As String
    Dim lessThanOrEqual As String
    Dim notEqual As String
    Dim notInSet As String
    Dim number As String
    Dim regularExpression As String
    Dim requiredField As String
    Dim value As String
     
    Dim instance As New CustomValidationMessages(between, dataType, date, equalTo, greaterThan, greaterThanOrEqual, inSet, lessThan, lessThanOrEqual, notEqual, notInSet, number, regularExpression, requiredField, value)
    public CustomValidationMessages( 
       string between,
       string dataType,
       string date,
       string equalTo,
       string greaterThan,
       string greaterThanOrEqual,
       string inSet,
       string lessThan,
       string lessThanOrEqual,
       string notEqual,
       string notInSet,
       string number,
       string regularExpression,
       string requiredField,
       string value
    )

    Parameters

    between
    A string representing the criterion's custom message for a "Between Min and Max" operator error.
    dataType
    A string representing the criterion's base custom message for a "Data Type" error.
    date
    A string representing the criterion's custom message for a "Date" data type error.
    equalTo
    A string representing the criterion's custom message for a "Equal To" operator error.
    greaterThan
    A string representing the criterion's custom message for a "Greater Than" operator error.
    greaterThanOrEqual
    A string representing the criterion's custom message for a "Greater Than or Equal To" operator error.
    inSet
    A string representing the criterion's custom message for a "In Set of Values" operator error.
    lessThan
    A string representing the criterion's custom message for a "Less Than" operator error.
    lessThanOrEqual
    A string representing the criterion's custom message for a "Less Than or Equal To" operator error.
    notEqual
    A string representing the criterion's custom message for a "Not Equal To" operator error.
    notInSet
    A string representing the criterion's custom message for a "Not in Set of Values" operator error.
    number
    A string representing the criterion's custom message for a "Number" data type error.
    regularExpression
    A string representing the criterion's custom message for a "Regular Expression" error.
    requiredField
    A string representing the criterion's custom message for a "Required Field" error.
    value
    A string representing the criterion's base custom message for any invalid input value.
    Remarks

    Passing a null string in one of the message parameters will cause the default for that message in ValidationProvider.DefaultValidationMessages to be used.

    Custom validation error messages apply to a specific validation criterion and, therefore, to specific input components.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also