How turn on/off a spotlight component?

I have looked thru all the .h files for a function that will SetEnable(bool onoff) the light. I do not see anything that will do this except intensity and i do not think thats the right thing to be setting to 0 for off or higher for on. Does anyone know what and where the functions at and called that turns this off and on? or is there one and if not why was it took out?

**found it
yourcomponent->**SetVisibility(bool);