Parameters
- name
- A System.String value indicating the name to validate.
- nameType
- A NameType value indicating whether the name is for a control, dataset, data region, or grouping object.
var validator = new NameValidator(); bool isValid = validator.ValidateName("ReportItemName", NameType.Control);