AjaxControlToolkit.BarChart.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(BarChartSeries barChartSeries in Series) {
                if(String.IsNullOrWhiteSpace(barChartSeries.Name))
                    throw new Exception("Name is missing the BarChartSeries. Please provide a name in the BarChartSeries.");
            }
        }