System.Web.UI.WebControls.ListBox.VerifyMultiSelect C# (CSharp) Method

VerifyMultiSelect() protected method

protected VerifyMultiSelect ( ) : void
return void
        protected internal override void VerifyMultiSelect()
        {
            //by default the ListControl will throw an exception in this method,
            //therefor we should override the method if the class is supporting
            //MultiSelect option.
            if (this.SelectionMode != ListSelectionMode.Multiple)
                throw new HttpException("Multiple select option is not supported");
        }
#endif