AjaxControlToolkit.PieChart.OnInit C# (CSharp) Метод

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

protected OnInit ( EventArgs e ) : void
e System.EventArgs
Результат void
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            if(IsDesignMode)
                return;

            foreach(PieChartValue pieChartValue in PieChartValues) {
                if(String.IsNullOrWhiteSpace(pieChartValue.Category))
                    throw new Exception("Category is missing in the PieChartValue. Please provide a Category in the PieChartValue.");
            }
        }
PieChart