AjaxControlToolkit.ComboBoxDesignerActionList.SetComponentProperty C# (CSharp) Метод

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

protected SetComponentProperty ( string propertyName, object value ) : void
propertyName string
value object
Результат void
        protected virtual void SetComponentProperty(string propertyName, object value)
        {
            var property = TypeDescriptor.GetProperties(_comboBox)[propertyName];

            if(property == null)
                throw new ArgumentException("Property not found", propertyName);
            else
                property.SetValue(_comboBox, value);
        }