In the above code, I have real created an object of Button class you can use any permission for this and got the information name in this post from it. The GetProperties actually take either the object or Typeof dog to list all the Properties it has in a form of PropertyDescriptorCollection. Post, GetEvents will list all the caam in the form of EventDescriptor. The custom provided in this module can be used in different ways..
For such cases, several different ACEs are necessary. If you wev to set a invalid permission combination on the checkboxes, the powerful Access Control Entry editor is shown where you can configure the regarding ACE in detail. Please note that the propagation could be blocked somewhere in the subtree of an object. Just deactivate the Inherit permissions from parent objects option.