lLayerIndex

Index of the layer whose attributes are to be retrieved. This should be a number from 0 to the count specified by the LayerCount property minus 1.