AjaxControlToolkit.DynamicPopulateExtender.CheckIfValid C# (CSharp) Method

CheckIfValid() protected method

protected CheckIfValid ( bool throwException ) : bool
throwException bool
return bool
        protected override bool CheckIfValid(bool throwException)
        {
            if(String.IsNullOrEmpty(CustomScript) && String.IsNullOrEmpty(ServiceMethod)) {
                if(throwException)
                    throw new InvalidOperationException("CustomScript or ServiceMethod must be set.");
                return false;
            }
            return base.CheckIfValid(throwException);
        }