How turn on/off sublayers of ArcGISDynamicMapServiceLayer

Discussion created by markus.brigl on May 14, 2013
Latest reply on May 20, 2013 by JTrieu-esristaff
The ArcGISDynamicMapServiceLayer provides access to each single sub-layer through the MapServiceLayerInfo.

How can I change the visibility of a single sub-layer. The MapServicaLayerInfo provides only the default visibility.