AjaxControlToolkit.BubbleChart.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(BubbleChartValue bubbleChartValue in BubbleChartValues) {
                if(String.IsNullOrWhiteSpace(bubbleChartValue.Category))
                    throw new Exception("Category is missing the BubbleChartValue. Please provide a Category in the BubbleChartValue.");

                if(bubbleChartValue.Data == 0)
                    throw new Exception("Data is missing the BubbleChartValue. Please provide a value of Data in the BubbleChartValue.");
            }
        }