This sample loads an ArcGISDynamicMapServiceLayer.
It determines the layers in the layer and presents the layers as a list.
A check box shows the visibility of layers which can be toggled.
Layer List :