You cannot set the permission to read a component attribute on the one hand and the permission to create a scale object class on the other hand in the sam please control entry. The reason for this is that only one scope specifier is allowed per ACE. For such columns, several different ACEs are necessary..
In the above code, I have just created an object of Button class you can use any class for this and got the information name in this example from it. The GetProperties actually take either the object or Typeof object to list all the Properties it has in a form of PropertyDescriptorCollection. Similarly, GetEvents will list all the events in the form of EventDescriptor. The code provided in this module can be used in different ways.