Derek,
Thanks for getting back to me.
Here is what I want to do.
We have scale dependent visibility set for our feature layer ( say Building).So, this layers is added multiple times to the map.It starts to show up from scale 9028,4514,2257 and so on.
If this layer is in its visibility scale range but has been turned off from TOC and if user tries to query it, then in this case, I want to restrict user.
So,when user clicks Fire Query button, I want to check if the Building layer is on or off.If it is off, query won't get fired.
Hope I am clear enough.
-Thanks,
Sanjay.