Definition query layer - Actual extent

Discussion created by ScottSugden on Nov 6, 2012
Latest reply on Jul 16, 2014 by MichaelGayheart
How do I get the actual extent of a layer with a definition query? The MapLayerInfo.Extent property returns the extent of the entire layer and not just the extent of those features returned by the definition query. If a map service contains a layer defined by a definition query that layer will only ever return features that match the definition query. I need the extent of those features matching the definition query and not the extent of all the features in the layer. Thank you.