AjaxControlToolkit.FilteredTextBoxExtender.CheckIfValid C# (CSharp) Метод

CheckIfValid() защищенный Метод

protected CheckIfValid ( bool throwException ) : bool
throwException bool
Результат bool
        protected override bool CheckIfValid(bool throwException)
        {
            if(FilterType == FilterTypes.Custom && (
                 (FilterMode == FilterModes.ValidChars && String.IsNullOrEmpty(ValidChars)) ||
                 (FilterMode == FilterModes.InvalidChars && String.IsNullOrEmpty(InvalidChars)))) {
                if(throwException)
                    throw new InvalidOperationException("If FilterTypes.Custom is specified, please provide a value for ValidChars or InvalidChars");

                return false;
            }
            return base.CheckIfValid(throwException);
        }
FilteredTextBoxExtender