[]
Checks report item names to ensure that they are unique, not empty or null, and do not contain invalid characters.
public bool ValidateName(string name, NameType nameType)
| Type | Name | Description |
|---|---|---|
| string | name | A string value indicating the name to validate. |
| NameType | nameType | A NameType value indicating whether the name is for a control, dataset, data region, or grouping object. |
| Type | Description |
|---|---|
| bool | A boolvalue. |
var validator = new NameValidator();
bool isValid = validator.ValidateName("ReportItemName", NameType.Control);