ActiveReports 18 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel Namespace / NameValidator Class / ValidateName Method
A string value representing the name to validate.
a GrapeCity.ActiveReports.PageReportModel.Validation.NameType enumeration indicating whether the name is for a control, dataset, dataregion or grouping object.

In This Topic
    ValidateName Method
    In This Topic
    Checks report item names to ensure that they are unique and that they are not empty or null and do not contain invalid characters.
    Syntax
    'Declaration
     
    Public Function ValidateName( _
       ByVal name As String, _
       ByVal nameType As NameType _
    ) As Boolean
    public bool ValidateName( 
       string name,
       NameType nameType
    )

    Parameters

    name
    A string value representing the name to validate.
    nameType
    a GrapeCity.ActiveReports.PageReportModel.Validation.NameType enumeration indicating whether the name is for a control, dataset, dataregion or grouping object.

    Return Value

    Returns true if the name is valid; otherwise false.
    See Also